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

int rl_vi_change_to(int count,int key)

{
  _rl_vimotion_cxt *m;
  int iVar1;
  ushort **ppuVar2;
  int in_GS_OFFSET;
  int c;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xc8a79;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  m = _rl_mvcxt_alloc(2,key);
  rl_mark = rl_point;
  _rl_vimvcxt = m;
  m->start = rl_point;
  if (((key & 0xffffff00U) == 0) &&
     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)) {
    m->motion = 0x24;
    iVar1 = rl_domove_motion_callback(m);
  }
  else if (_rl_vi_redoing == 0) {
    if ((rl_readline_state & 0x80000) != 0) {
      rl_readline_state = rl_readline_state | 0x100000;
      iVar1 = 0;
      goto LAB_000c8b32;
    }
    iVar1 = rl_vi_domove(key,&c);
  }
  else if (_rl_vi_last_motion == 99) {
    m->motion = 99;
    rl_mark = rl_end;
    rl_beg_of_line(1,key);
    rl_readline_state = rl_readline_state & 0xffefffff;
    iVar1 = vidomove_dispatch(_rl_vimvcxt);
  }
  else {
    m->motion = _rl_vi_last_motion;
    iVar1 = rl_domove_motion_callback(m);
  }
  if (iVar1 < 0) {
    rl_ding();
    iVar1 = -1;
  }
  xfree(_rl_vimvcxt);
  _rl_vimvcxt = (_rl_vimotion_cxt *)0x0;
LAB_000c8b32:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar1;
}



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

int rl_vi_change_to(undefined4 param_1,uint param_2)

{
  int iVar1;
  ushort **ppuVar2;
  int in_GS_OFFSET;
  undefined1 local_24 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xc8a79;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_000c5d20();
  rl_mark = rl_point;
  _rl_vimvcxt = iVar1;
  *(undefined4 *)(iVar1 + 0x14) = rl_point;
  if (((param_2 & 0xffffff00) == 0) &&
     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {
    *(undefined4 *)(iVar1 + 0x20) = 0x24;
    iVar1 = FUN_000c85c0();
  }
  else if (_rl_vi_redoing == 0) {
    if ((rl_readline_state & 0x80000) != 0) {
      rl_readline_state = rl_readline_state | 0x100000;
      iVar1 = 0;
      goto LAB_000c8b32;
    }
    iVar1 = rl_vi_domove(param_2,local_24);
  }
  else if (DAT_00151c14 == 99) {
    *(undefined4 *)(iVar1 + 0x20) = 99;
    rl_mark = rl_end;
    rl_beg_of_line(1,param_2);
    rl_readline_state = rl_readline_state & 0xffefffff;
    iVar1 = FUN_000c61f0();
  }
  else {
    *(int *)(iVar1 + 0x20) = DAT_00151c14;
    iVar1 = FUN_000c85c0();
  }
  if (iVar1 < 0) {
    rl_ding();
    iVar1 = -1;
  }
  xfree(_rl_vimvcxt);
  _rl_vimvcxt = 0;
LAB_000c8b32:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000ecc40();
  }
  return iVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x81587
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x44]
MOV EAX,0x2
MOV EDX,EDI
CALL 0x000c5d20
LEA EDX,[EBX + 0xd97c]
MOV EBP,EAX
MOV dword ptr [EBX + 0x7b60],EAX
LEA EAX,[EBX + 0xd988]
MOV EAX,dword ptr [EAX]
MOV dword ptr [EBP + 0x14],EAX
MOV dword ptr [EDX],EAX
TEST EDI,0xffffff00
JZ 0x000c8b50
LEA EAX,[EBX + 0xd998]
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x000c8b18
MOV EAX,dword ptr [EBX + 0x7c14]
CMP EAX,0x63
JZ 0x000c8ba0
MOV dword ptr [EBP + 0x20],EAX
MOV EAX,EBP
CALL 0x000c85c0
MOV ESI,EAX
TEST ESI,ESI
JS 0x000c8b88
SUB ESP,0xc
PUSH dword ptr [EBX + 0x7b60]
CALL 0x000992e0
ADD ESP,0x10
MOV dword ptr [EBX + 0x7b60],0x0
JMP 0x000c8b32
LEA EDX,[EBX + 0x7b44]
MOV EAX,dword ptr [EDX]
TEST EAX,0x80000
JZ 0x000c8be0
OR EAX,0x100000
MOV dword ptr [EDX],EAX
MOV ECX,dword ptr [ESP + 0x1c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x000c8bf8
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],EDX
CALL 0x0002fd70
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,dword ptr [EAX]
TEST byte ptr [EAX + EDI*0x2 + 0x1],0x1
JZ 0x000c8ac5
MOV dword ptr [EBP + 0x20],0x24
MOV EAX,EBP
CALL 0x000c85c0
MOV ESI,EAX
TEST ESI,ESI
JNS 0x000c8af4
LEA ESI,[ESI]
CALL 0x000e16a0
MOV ESI,0xffffffff
JMP 0x000c8af4
LEA EAX,[EBX + 0xd8cc]
SUB ESP,0x8
MOV dword ptr [EBP + 0x20],0x63
MOV EAX,dword ptr [EAX]
MOV dword ptr [EDX],EAX
PUSH EDI
PUSH 0x1
CALL 0x000e2bc0
LEA EAX,[EBX + 0x7b44]
AND dword ptr [EAX],0xffefffff
MOV EAX,dword ptr [EBX + 0x7b60]
CALL 0x000c61f0
ADD ESP,0x10
MOV ESI,EAX
JMP 0x000c8aec
SUB ESP,0x8
LEA EAX,[ESP + 0x20]
PUSH EAX
PUSH EDI
CALL 0x000c8880
ADD ESP,0x10
MOV ESI,EAX
JMP 0x000c8aec
CALL 0x000ecc40
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint rl_vi_change_to(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000ecc40();\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int rl_vi_change_to(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000ecc40();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rl_vi_change_to(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000ecc40();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xc8a79;" (assignment_expression "uStack_14 = 0xc8a79" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_000c5d20();" (assignment_expression "iVar1 = FUN_000c5d20()" identifier = (call_expression "FUN_000c5d20()" identifier (argument_list "()" ( )))) ;) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" identifier = identifier) ;) (expression_statement "_rl_vimvcxt = iVar1;" (assignment_expression "_rl_vimvcxt = iVar1" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = rl_point;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = rl_point" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" if (parenthesized_expression "(((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0))" ( (binary_expression "((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)" (parenthesized_expression "((param_2 & 0xffffff00) == 0)" ( (binary_expression "(param_2 & 0xffffff00) == 0" (parenthesized_expression "(param_2 & 0xffffff00)" ( (binary_expression "param_2 & 0xffffff00" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)" ( (comma_expression "ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) , (binary_expression "(*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1)" ( (binary_expression "*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1" (pointer_expression "*(byte *)((int)*ppuVar2 + param_2 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + param_2 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + param_2 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + param_2 * 2 + 1" (binary_expression "(int)*ppuVar2 + param_2 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "param_2 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0x24;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0x24" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_000c85c0();" (assignment_expression "iVar1 = FUN_000c85c0()" identifier = (call_expression "FUN_000c85c0()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" else (if_statement "if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" if (parenthesized_expression "(_rl_vi_redoing == 0)" ( (binary_expression "_rl_vi_redoing == 0" identifier == number_literal) )) (compound_statement "{\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }" { (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" if (parenthesized_expression "((rl_readline_state & 0x80000) != 0)" ( (binary_expression "(rl_readline_state & 0x80000) != 0" (parenthesized_expression "(rl_readline_state & 0x80000)" ( (binary_expression "rl_readline_state & 0x80000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" { (expression_statement "rl_readline_state = rl_readline_state | 0x100000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x100000" identifier = (binary_expression "rl_readline_state | 0x100000" identifier | number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000c8b32;" goto statement_identifier ;) })) (expression_statement "iVar1 = rl_vi_domove(param_2,local_24);" (assignment_expression "iVar1 = rl_vi_domove(param_2,local_24)" identifier = (call_expression "rl_vi_domove(param_2,local_24)" identifier (argument_list "(param_2,local_24)" ( identifier , identifier )))) ;) }) (else_clause "else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" else (if_statement "if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" if (parenthesized_expression "(DAT_00151c14 == 99)" ( (binary_expression "DAT_00151c14 == 99" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 99;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 99" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "rl_mark = rl_end;" (assignment_expression "rl_mark = rl_end" identifier = identifier) ;) (expression_statement "rl_beg_of_line(1,param_2);" (call_expression "rl_beg_of_line(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier ))) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xffefffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffefffff" identifier = (binary_expression "rl_readline_state & 0xffefffff" identifier & number_literal)) ;) (expression_statement "iVar1 = FUN_000c61f0();" (assignment_expression "iVar1 = FUN_000c61f0()" identifier = (call_expression "FUN_000c61f0()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" else (compound_statement "{\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" { (expression_statement "*(int *)(iVar1 + 0x20) = DAT_00151c14;" (assignment_expression "*(int *)(iVar1 + 0x20) = DAT_00151c14" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = FUN_000c85c0();" (assignment_expression "iVar1 = FUN_000c85c0()" identifier = (call_expression "FUN_000c85c0()" identifier (argument_list "()" ( )))) ;) }))))))) (if_statement "if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    rl_ding();\n    iVar1 = -1;\n  }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (expression_statement "xfree(_rl_vimvcxt);" (call_expression "xfree(_rl_vimvcxt)" identifier (argument_list "(_rl_vimvcxt)" ( identifier ))) ;) (expression_statement "_rl_vimvcxt = 0;" (assignment_expression "_rl_vimvcxt = 0" identifier = number_literal) ;) (labeled_statement "LAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000ecc40();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_000ecc40();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_000ecc40();\n  }" { comment (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint rl_vi_change_to(int count,int key)\n\n{\n  _rl_vimotion_cxt *m;\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  int c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  m = _rl_mvcxt_alloc(2,key);\n  rl_mark = rl_point;\n  _rl_vimvcxt = m;\n  m->start = rl_point;\n  if (((key & 0xffffff00U) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)) {\n    m->motion = 0x24;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }\n  else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = (_rl_vimotion_cxt *)0x0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int rl_vi_change_to(int count,int key)\n\n{\n  _rl_vimotion_cxt *m;\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  int c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  m = _rl_mvcxt_alloc(2,key);\n  rl_mark = rl_point;\n  _rl_vimvcxt = m;\n  m->start = rl_point;\n  if (((key & 0xffffff00U) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)) {\n    m->motion = 0x24;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }\n  else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = (_rl_vimotion_cxt *)0x0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rl_vi_change_to(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  _rl_vimotion_cxt *m;\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  int c;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  m = _rl_mvcxt_alloc(2,key);\n  rl_mark = rl_point;\n  _rl_vimvcxt = m;\n  m->start = rl_point;\n  if (((key & 0xffffff00U) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)) {\n    m->motion = 0x24;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }\n  else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = (_rl_vimotion_cxt *)0x0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar1;\n}" { (declaration "_rl_vimotion_cxt *m;" type_identifier (pointer_declarator "*m" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int c;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xc8a79;" (assignment_expression "uStack_14 = 0xc8a79" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "m = _rl_mvcxt_alloc(2,key);" (assignment_expression "m = _rl_mvcxt_alloc(2,key)" identifier = (call_expression "_rl_mvcxt_alloc(2,key)" identifier (argument_list "(2,key)" ( number_literal , identifier )))) ;) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" identifier = identifier) ;) (expression_statement "_rl_vimvcxt = m;" (assignment_expression "_rl_vimvcxt = m" identifier = identifier) ;) (expression_statement "m->start = rl_point;" (assignment_expression "m->start = rl_point" (field_expression "m->start" identifier -> field_identifier) = identifier) ;) (if_statement "if (((key & 0xffffff00U) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)) {\n    m->motion = 0x24;\n    iVar1 = rl_domove_motion_callback(m);\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }\n  else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" if (parenthesized_expression "(((key & 0xffffff00U) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0))" ( (binary_expression "((key & 0xffffff00U) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)" (parenthesized_expression "((key & 0xffffff00U) == 0)" ( (binary_expression "(key & 0xffffff00U) == 0" (parenthesized_expression "(key & 0xffffff00U)" ( (binary_expression "key & 0xffffff00U" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0)" ( (comma_expression "ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) , (binary_expression "(*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1)" ( (binary_expression "*(byte *)((int)*ppuVar2 + key * 2 + 1) & 1" (pointer_expression "*(byte *)((int)*ppuVar2 + key * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + key * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + key * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + key * 2 + 1" (binary_expression "(int)*ppuVar2 + key * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "key * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    m->motion = 0x24;\n    iVar1 = rl_domove_motion_callback(m);\n  }" { (expression_statement "m->motion = 0x24;" (assignment_expression "m->motion = 0x24" (field_expression "m->motion" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar1 = rl_domove_motion_callback(m);" (assignment_expression "iVar1 = rl_domove_motion_callback(m)" identifier = (call_expression "rl_domove_motion_callback(m)" identifier (argument_list "(m)" ( identifier )))) ;) }) (else_clause "else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }\n  else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" else (if_statement "if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }\n  else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" if (parenthesized_expression "(_rl_vi_redoing == 0)" ( (binary_expression "_rl_vi_redoing == 0" identifier == number_literal) )) (compound_statement "{\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(key,&c);\n  }" { (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" if (parenthesized_expression "((rl_readline_state & 0x80000) != 0)" ( (binary_expression "(rl_readline_state & 0x80000) != 0" (parenthesized_expression "(rl_readline_state & 0x80000)" ( (binary_expression "rl_readline_state & 0x80000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" { (expression_statement "rl_readline_state = rl_readline_state | 0x100000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x100000" identifier = (binary_expression "rl_readline_state | 0x100000" identifier | number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000c8b32;" goto statement_identifier ;) })) (expression_statement "iVar1 = rl_vi_domove(key,&c);" (assignment_expression "iVar1 = rl_vi_domove(key,&c)" identifier = (call_expression "rl_vi_domove(key,&c)" identifier (argument_list "(key,&c)" ( identifier , (pointer_expression "&c" & identifier) )))) ;) }) (else_clause "else if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" else (if_statement "if (_rl_vi_last_motion == 99) {\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }\n  else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" if (parenthesized_expression "(_rl_vi_last_motion == 99)" ( (binary_expression "_rl_vi_last_motion == 99" identifier == number_literal) )) (compound_statement "{\n    m->motion = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,key);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = vidomove_dispatch(_rl_vimvcxt);\n  }" { (expression_statement "m->motion = 99;" (assignment_expression "m->motion = 99" (field_expression "m->motion" identifier -> field_identifier) = number_literal) ;) (expression_statement "rl_mark = rl_end;" (assignment_expression "rl_mark = rl_end" identifier = identifier) ;) (expression_statement "rl_beg_of_line(1,key);" (call_expression "rl_beg_of_line(1,key)" identifier (argument_list "(1,key)" ( number_literal , identifier ))) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xffefffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffefffff" identifier = (binary_expression "rl_readline_state & 0xffefffff" identifier & number_literal)) ;) (expression_statement "iVar1 = vidomove_dispatch(_rl_vimvcxt);" (assignment_expression "iVar1 = vidomove_dispatch(_rl_vimvcxt)" identifier = (call_expression "vidomove_dispatch(_rl_vimvcxt)" identifier (argument_list "(_rl_vimvcxt)" ( identifier )))) ;) }) (else_clause "else {\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" else (compound_statement "{\n    m->motion = _rl_vi_last_motion;\n    iVar1 = rl_domove_motion_callback(m);\n  }" { (expression_statement "m->motion = _rl_vi_last_motion;" (assignment_expression "m->motion = _rl_vi_last_motion" (field_expression "m->motion" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = rl_domove_motion_callback(m);" (assignment_expression "iVar1 = rl_domove_motion_callback(m)" identifier = (call_expression "rl_domove_motion_callback(m)" identifier (argument_list "(m)" ( identifier )))) ;) }))))))) (if_statement "if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    rl_ding();\n    iVar1 = -1;\n  }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (expression_statement "xfree(_rl_vimvcxt);" (call_expression "xfree(_rl_vimvcxt)" identifier (argument_list "(_rl_vimvcxt)" ( identifier ))) ;) (expression_statement "_rl_vimvcxt = (_rl_vimotion_cxt *)0x0;" (assignment_expression "_rl_vimvcxt = (_rl_vimotion_cxt *)0x0" identifier = (cast_expression "(_rl_vimotion_cxt *)0x0" ( (type_descriptor "_rl_vimotion_cxt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int rl_vi_change_to(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }\n  return iVar1;\n}\n\n" (function_definition "int rl_vi_change_to(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rl_vi_change_to(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "ushort **ppuVar2;" type_identifier (pointer_declarator "**ppuVar2" * (pointer_declarator "*ppuVar2" * identifier)) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined1 local_24 [4];" type_identifier (array_declarator "local_24 [4]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0xc8a79;" (assignment_expression "uStack_14 = 0xc8a79" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_000c5d20();" (assignment_expression "iVar1 = FUN_000c5d20()" identifier = (call_expression "FUN_000c5d20()" identifier (argument_list "()" ( )))) ;) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" identifier = identifier) ;) (expression_statement "_rl_vimvcxt = iVar1;" (assignment_expression "_rl_vimvcxt = iVar1" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = rl_point;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = rl_point" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (if_statement "if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" if (parenthesized_expression "(((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0))" ( (binary_expression "((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)" (parenthesized_expression "((param_2 & 0xffffff00) == 0)" ( (binary_expression "(param_2 & 0xffffff00) == 0" (parenthesized_expression "(param_2 & 0xffffff00)" ( (binary_expression "param_2 & 0xffffff00" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)" ( (comma_expression "ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0" (assignment_expression "ppuVar2 = __ctype_b_loc()" identifier = (call_expression "__ctype_b_loc()" identifier (argument_list "()" ( )))) , (binary_expression "(*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1)" ( (binary_expression "*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1" (pointer_expression "*(byte *)((int)*ppuVar2 + param_2 * 2 + 1)" * (cast_expression "(byte *)((int)*ppuVar2 + param_2 * 2 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)*ppuVar2 + param_2 * 2 + 1)" ( (binary_expression "(int)*ppuVar2 + param_2 * 2 + 1" (binary_expression "(int)*ppuVar2 + param_2 * 2" (cast_expression "(int)*ppuVar2" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*ppuVar2" * identifier)) + (binary_expression "param_2 * 2" identifier * number_literal)) + number_literal) )))) & number_literal) )) != number_literal)) ))) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0x24;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0x24" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_000c85c0();" (assignment_expression "iVar1 = FUN_000c85c0()" identifier = (call_expression "FUN_000c85c0()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" else (if_statement "if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" if (parenthesized_expression "(_rl_vi_redoing == 0)" ( (binary_expression "_rl_vi_redoing == 0" identifier == number_literal) )) (compound_statement "{\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }" { (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" if (parenthesized_expression "((rl_readline_state & 0x80000) != 0)" ( (binary_expression "(rl_readline_state & 0x80000) != 0" (parenthesized_expression "(rl_readline_state & 0x80000)" ( (binary_expression "rl_readline_state & 0x80000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" { (expression_statement "rl_readline_state = rl_readline_state | 0x100000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x100000" identifier = (binary_expression "rl_readline_state | 0x100000" identifier | number_literal)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000c8b32;" goto statement_identifier ;) })) (expression_statement "iVar1 = rl_vi_domove(param_2,local_24);" (assignment_expression "iVar1 = rl_vi_domove(param_2,local_24)" identifier = (call_expression "rl_vi_domove(param_2,local_24)" identifier (argument_list "(param_2,local_24)" ( identifier , identifier )))) ;) }) (else_clause "else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" else (if_statement "if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" if (parenthesized_expression "(DAT_00151c14 == 99)" ( (binary_expression "DAT_00151c14 == 99" identifier == number_literal) )) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 99;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 99" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "rl_mark = rl_end;" (assignment_expression "rl_mark = rl_end" identifier = identifier) ;) (expression_statement "rl_beg_of_line(1,param_2);" (call_expression "rl_beg_of_line(1,param_2)" identifier (argument_list "(1,param_2)" ( number_literal , identifier ))) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xffefffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffefffff" identifier = (binary_expression "rl_readline_state & 0xffefffff" identifier & number_literal)) ;) (expression_statement "iVar1 = FUN_000c61f0();" (assignment_expression "iVar1 = FUN_000c61f0()" identifier = (call_expression "FUN_000c61f0()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" else (compound_statement "{\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" { (expression_statement "*(int *)(iVar1 + 0x20) = DAT_00151c14;" (assignment_expression "*(int *)(iVar1 + 0x20) = DAT_00151c14" (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = FUN_000c85c0();" (assignment_expression "iVar1 = FUN_000c85c0()" identifier = (call_expression "FUN_000c85c0()" identifier (argument_list "()" ( )))) ;) }))))))) (if_statement "if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n    rl_ding();\n    iVar1 = -1;\n  }" { (expression_statement "rl_ding();" (call_expression "rl_ding()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) (expression_statement "xfree(_rl_vimvcxt);" (call_expression "xfree(_rl_vimvcxt)" identifier (argument_list "(_rl_vimvcxt)" ( identifier ))) ;) (expression_statement "_rl_vimvcxt = 0;" (assignment_expression "_rl_vimvcxt = 0" identifier = number_literal) ;) (labeled_statement "LAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_000ecc40();\n  }" { (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar1;" 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 * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + (binary_expression IDENT * LIT)) + 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) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_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 (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) (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) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int rl_vi_change_to(undefined4 param_1,uint param_2)\n\n{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "rl_vi_change_to(undefined4 param_1,uint param_2)" (identifier "rl_vi_change_to") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  ushort **ppuVar2;\n  int in_GS_OFFSET;\n  undefined1 local_24 [4];\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0xc8a79;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_000c5d20();\n  rl_mark = rl_point;\n  _rl_vimvcxt = iVar1;\n  *(undefined4 *)(iVar1 + 0x14) = rl_point;\n  if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }\n  if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }\n  xfree(_rl_vimvcxt);\n  _rl_vimvcxt = 0;\nLAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "ushort **ppuVar2;" (type_identifier "ushort") (pointer_declarator "**ppuVar2" (* "*") (pointer_declarator "*ppuVar2" (* "*") (identifier "ppuVar2"))) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined1 local_24 [4];" (type_identifier "undefined1") (array_declarator "local_24 [4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0xc8a79;" (assignment_expression "uStack_14 = 0xc8a79" (identifier "uStack_14") (= "=") (number_literal "0xc8a79")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_000c5d20();" (assignment_expression "iVar1 = FUN_000c5d20()" (identifier "iVar1") (= "=") (call_expression "FUN_000c5d20()" (identifier "FUN_000c5d20") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "rl_mark = rl_point;" (assignment_expression "rl_mark = rl_point" (identifier "rl_mark") (= "=") (identifier "rl_point")) (; ";")) (expression_statement "_rl_vimvcxt = iVar1;" (assignment_expression "_rl_vimvcxt = iVar1" (identifier "_rl_vimvcxt") (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = rl_point;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = rl_point" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "rl_point")) (; ";")) (if_statement "if (((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }\n  else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" (if "if") (parenthesized_expression "(((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0))" (( "(") (binary_expression "((param_2 & 0xffffff00) == 0) &&\n     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)" (parenthesized_expression "((param_2 & 0xffffff00) == 0)" (( "(") (binary_expression "(param_2 & 0xffffff00) == 0" (parenthesized_expression "(param_2 & 0xffffff00)" (( "(") (binary_expression "param_2 & 0xffffff00" (identifier "param_2") (& "&") (number_literal "0xffffff00")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)" (( "(") (comma_expression "ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0" (assignment_expression "ppuVar2 = __ctype_b_loc()" (identifier "ppuVar2") (= "=") (call_expression "__ctype_b_loc()" (identifier "__ctype_b_loc") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "(*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0" (parenthesized_expression "(*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1)" (( "(") (binary_expression "*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1" (pointer_expression "*(byte *)((int)*ppuVar2 + param_2 * 2 + 1)" (* "*") (cast_expression "(byte *)((int)*ppuVar2 + param_2 * 2 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)*ppuVar2 + param_2 * 2 + 1)" (( "(") (binary_expression "(int)*ppuVar2 + param_2 * 2 + 1" (binary_expression "(int)*ppuVar2 + param_2 * 2" (cast_expression "(int)*ppuVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*ppuVar2" (* "*") (identifier "ppuVar2"))) (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x20) = 0x24;\n    iVar1 = FUN_000c85c0();\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0x24;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0x24" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0x24")) (; ";")) (expression_statement "iVar1 = FUN_000c85c0();" (assignment_expression "iVar1 = FUN_000c85c0()" (identifier "iVar1") (= "=") (call_expression "FUN_000c85c0()" (identifier "FUN_000c85c0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" (else "else") (if_statement "if (_rl_vi_redoing == 0) {\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }\n  else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" (if "if") (parenthesized_expression "(_rl_vi_redoing == 0)" (( "(") (binary_expression "_rl_vi_redoing == 0" (identifier "_rl_vi_redoing") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }\n    iVar1 = rl_vi_domove(param_2,local_24);\n  }" ({ "{") (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" (if "if") (parenthesized_expression "((rl_readline_state & 0x80000) != 0)" (( "(") (binary_expression "(rl_readline_state & 0x80000) != 0" (parenthesized_expression "(rl_readline_state & 0x80000)" (( "(") (binary_expression "rl_readline_state & 0x80000" (identifier "rl_readline_state") (& "&") (number_literal "0x80000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      rl_readline_state = rl_readline_state | 0x100000;\n      iVar1 = 0;\n      goto LAB_000c8b32;\n    }" ({ "{") (expression_statement "rl_readline_state = rl_readline_state | 0x100000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x100000" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state | 0x100000" (identifier "rl_readline_state") (| "|") (number_literal "0x100000"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000c8b32;" (goto "goto") (statement_identifier "LAB_000c8b32") (; ";")) (} "}"))) (expression_statement "iVar1 = rl_vi_domove(param_2,local_24);" (assignment_expression "iVar1 = rl_vi_domove(param_2,local_24)" (identifier "iVar1") (= "=") (call_expression "rl_vi_domove(param_2,local_24)" (identifier "rl_vi_domove") (argument_list "(param_2,local_24)" (( "(") (identifier "param_2") (, ",") (identifier "local_24") () ")")))) (; ";")) (} "}")) (else_clause "else if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" (else "else") (if_statement "if (DAT_00151c14 == 99) {\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }\n  else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" (if "if") (parenthesized_expression "(DAT_00151c14 == 99)" (( "(") (binary_expression "DAT_00151c14 == 99" (identifier "DAT_00151c14") (== "==") (number_literal "99")) () ")")) (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x20) = 99;\n    rl_mark = rl_end;\n    rl_beg_of_line(1,param_2);\n    rl_readline_state = rl_readline_state & 0xffefffff;\n    iVar1 = FUN_000c61f0();\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 99;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 99" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "99")) (; ";")) (expression_statement "rl_mark = rl_end;" (assignment_expression "rl_mark = rl_end" (identifier "rl_mark") (= "=") (identifier "rl_end")) (; ";")) (expression_statement "rl_beg_of_line(1,param_2);" (call_expression "rl_beg_of_line(1,param_2)" (identifier "rl_beg_of_line") (argument_list "(1,param_2)" (( "(") (number_literal "1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "rl_readline_state = rl_readline_state & 0xffefffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xffefffff" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state & 0xffefffff" (identifier "rl_readline_state") (& "&") (number_literal "0xffefffff"))) (; ";")) (expression_statement "iVar1 = FUN_000c61f0();" (assignment_expression "iVar1 = FUN_000c61f0()" (identifier "iVar1") (= "=") (call_expression "FUN_000c61f0()" (identifier "FUN_000c61f0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" (else "else") (compound_statement "{\n    *(int *)(iVar1 + 0x20) = DAT_00151c14;\n    iVar1 = FUN_000c85c0();\n  }" ({ "{") (expression_statement "*(int *)(iVar1 + 0x20) = DAT_00151c14;" (assignment_expression "*(int *)(iVar1 + 0x20) = DAT_00151c14" (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "DAT_00151c14")) (; ";")) (expression_statement "iVar1 = FUN_000c85c0();" (assignment_expression "iVar1 = FUN_000c85c0()" (identifier "iVar1") (= "=") (call_expression "FUN_000c85c0()" (identifier "FUN_000c85c0") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))))))) (if_statement "if (iVar1 < 0) {\n    rl_ding();\n    iVar1 = -1;\n  }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    rl_ding();\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "rl_ding();" (call_expression "rl_ding()" (identifier "rl_ding") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (expression_statement "xfree(_rl_vimvcxt);" (call_expression "xfree(_rl_vimvcxt)" (identifier "xfree") (argument_list "(_rl_vimvcxt)" (( "(") (identifier "_rl_vimvcxt") () ")"))) (; ";")) (expression_statement "_rl_vimvcxt = 0;" (assignment_expression "_rl_vimvcxt = 0" (identifier "_rl_vimvcxt") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000c8b32:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }" (statement_identifier "LAB_000c8b32") (: ":") (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_000ecc40();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_000ecc40();\n  }" ({ "{") (expression_statement "FUN_000ecc40();" (call_expression "FUN_000ecc40()" (identifier "FUN_000ecc40") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

int function_1(int count,int var_3)

{
  type_1 *m;
  int var_12;
  type_2 **ppuVar2;
  int var_1;
  int c;
  int var_15;
  type_3 uStack_14;
  
  uStack_14 = 0xc8a79;
  var_15 = *(int *)(var_1 + 0x14);
  m = var_2(2,var_3);
  rl_mark = rl_point;
  _rl_vimvcxt = m;
  m->start = rl_point;
  if (((var_3 & 0xffffff00U) == 0) &&
     (ppuVar2 = var_4(), (*(type_4 *)((int)*ppuVar2 + var_3 * 2 + 1) & 1) != 0)) {
    m->motion = 0x24;
    var_12 = var_5(m);
  }
  else if (var_6 == 0) {
    if ((var_7 & 0x80000) != 0) {
      var_7 = var_7 | 0x100000;
      var_12 = 0;
      goto LAB_000c8b32;
    }
    var_12 = var_8(var_3,&c);
  }
  else if (var_9 == 99) {
    m->motion = 99;
    rl_mark = rl_end;
    var_10(1,var_3);
    var_7 = var_7 & 0xffefffff;
    var_12 = var_11(_rl_vimvcxt);
  }
  else {
    m->motion = var_9;
    var_12 = var_5(m);
  }
  if (var_12 < 0) {
    var_13();
    var_12 = -1;
  }
  var_14(_rl_vimvcxt);
  _rl_vimvcxt = (type_1 *)0x0;
LAB_000c8b32:
  if (var_15 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return var_12;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (binary_expression left: (identifier) right: (number_literal))) 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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) 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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (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))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (return_statement (identifier)))))

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

int MASKED(undefined4 param_1,uint param_2)

{
  int iVar1;
  ushort **ppuVar2;
  int in_GS_OFFSET;
  undefined1 local_24 [4];
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0xc8a79;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_000c5d20();
  rl_mark = rl_point;
  _rl_vimvcxt = iVar1;
  *(undefined4 *)(iVar1 + 0x14) = rl_point;
  if (((param_2 & 0xffffff00) == 0) &&
     (ppuVar2 = __ctype_b_loc(), (*(byte *)((int)*ppuVar2 + param_2 * 2 + 1) & 1) != 0)) {
    *(undefined4 *)(iVar1 + 0x20) = 0x24;
    iVar1 = FUN_000c85c0();
  }
  else if (_rl_vi_redoing == 0) {
    if ((rl_readline_state & 0x80000) != 0) {
      rl_readline_state = rl_readline_state | 0x100000;
      iVar1 = 0;
      goto LAB_000c8b32;
    }
    iVar1 = rl_vi_domove(param_2,local_24);
  }
  else if (DAT_00151c14 == 99) {
    *(undefined4 *)(iVar1 + 0x20) = 99;
    rl_mark = rl_end;
    rl_beg_of_line(1,param_2);
    rl_readline_state = rl_readline_state & 0xffefffff;
    iVar1 = FUN_000c61f0();
  }
  else {
    *(int *)(iVar1 + 0x20) = DAT_00151c14;
    iVar1 = FUN_000c85c0();
  }
  if (iVar1 < 0) {
    rl_ding();
    iVar1 = -1;
  }
  xfree(_rl_vimvcxt);
  _rl_vimvcxt = 0;
LAB_000c8b32:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_000ecc40();
  }
  return iVar1;
}

