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

int rl_vi_char_search(int count,int key)

{
  int iVar1;
  
  iVar1 = _rl_vi_last_search_mblen;
  if ((key == 0x3b) || (key == 0x2c)) {
    if (_rl_cs_orig_dir == 0) {
      return 1;
    }
    if (_rl_vi_last_search_mblen == 0) {
      return 1;
    }
    _rl_cs_dir = _rl_cs_orig_dir;
    if (key != 0x3b) {
      _rl_cs_dir = -_rl_cs_orig_dir;
    }
  }
  else {
    if (key == 0x54) {
      _rl_cs_dir = -1;
      _rl_cs_orig_dir = -1;
    }
    else if (key < 0x55) {
      if (key == 0x46) {
        _rl_cs_dir = -2;
        _rl_cs_orig_dir = -2;
      }
    }
    else if (key == 0x66) {
      _rl_cs_dir = 2;
      _rl_cs_orig_dir = 2;
    }
    else if (key == 0x74) {
      _rl_cs_dir = 1;
      _rl_cs_orig_dir = 1;
    }
    if (_rl_vi_redoing == 0) {
      if ((rl_readline_state & 0x80000) != 0) {
        _rl_callback_data = _rl_callback_data_alloc(count);
        rl_readline_state = rl_readline_state | 0x800000;
        _rl_callback_data->i2 = key;
        _rl_callback_data->i1 = _rl_cs_dir;
        _rl_callback_func = _rl_vi_callback_char_search;
        return 0;
      }
      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);
      if (iVar1 < 1) {
        return -1;
      }
    }
  }
  _rl_vi_last_search_mblen = iVar1;
  iVar1 = _rl_char_search_internal
                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);
  return iVar1;
}



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

undefined4 rl_vi_char_search(undefined4 param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = DAT_00179c00;
  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {
    if (DAT_00179b64 == 0) {
      return 1;
    }
    if (DAT_00179c00 == 0) {
      return 1;
    }
    DAT_00179b68 = DAT_00179b64;
    if (param_2 != 0x3b) {
      DAT_00179b68 = -DAT_00179b64;
    }
  }
  else {
    if (param_2 == 0x54) {
      DAT_00179b68 = -1;
      DAT_00179b64 = -1;
    }
    else if (param_2 < 0x55) {
      if (param_2 == 0x46) {
        DAT_00179b68 = -2;
        DAT_00179b64 = -2;
      }
    }
    else if (param_2 == 0x66) {
      DAT_00179b68 = 2;
      DAT_00179b64 = 2;
    }
    else if (param_2 == 0x74) {
      DAT_00179b68 = 1;
      DAT_00179b64 = 1;
    }
    if (_rl_vi_redoing == 0) {
      if ((rl_readline_state & 0x80000) != 0) {
        _rl_callback_data = _rl_callback_data_alloc(param_1);
        rl_readline_state = rl_readline_state | 0x800000;
        *(int *)(_rl_callback_data + 8) = param_2;
        *(int *)(_rl_callback_data + 4) = DAT_00179b68;
        _rl_callback_func = FUN_000e01d0;
        return 0;
      }
      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);
      if (iVar2 < 1) {
        return 0xffffffff;
      }
    }
  }
  DAT_00179c00 = iVar2;
  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);
  return uVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x8ce07
SUB ESP,0xc
MOV ESI,dword ptr [ESP + 0x24]
CMP ESI,0x3b
JZ 0x000e5270
CMP ESI,0x2c
JZ 0x000e5270
CMP ESI,0x54
JZ 0x000e5380
JLE 0x000e52c0
CMP ESI,0x66
JZ 0x000e5360
CMP ESI,0x74
JNZ 0x000e5248
MOV dword ptr [EBX + 0x7b68],0x1
MOV dword ptr [EBX + 0x7b64],0x1
LEA ESI,[ESI]
LEA EAX,[EBX + 0xd998]
MOV EDI,dword ptr [EAX]
TEST EDI,EDI
JZ 0x000e52e0
MOV EAX,dword ptr [EBX + 0x7c00]
MOV EDX,dword ptr [EBX + 0x7b68]
LEA ESI,[EBX + 0x7c04]
JMP 0x000e529f
MOV EDX,dword ptr [EBX + 0x7b64]
MOV EDI,0x1
TEST EDX,EDX
JZ 0x000e52b0
MOV EAX,dword ptr [EBX + 0x7c00]
TEST EAX,EAX
JZ 0x000e52b0
MOV ECX,EDX
NEG ECX
CMP ESI,0x3b
LEA ESI,[EBX + 0x7c04]
CMOVNZ EDX,ECX
MOV dword ptr [EBX + 0x7b68],EDX
PUSH EAX
PUSH ESI
PUSH EDX
PUSH dword ptr [ESP + 0x2c]
CALL 0x00106060
ADD ESP,0x10
MOV EDI,EAX
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP ESI,0x46
JNZ 0x000e5248
MOV dword ptr [EBX + 0x7b68],0xfffffffe
MOV dword ptr [EBX + 0x7b64],0xfffffffe
JMP 0x000e5248
LEA EBP,[EBX + 0x7b44]
TEST dword ptr [EBP],0x80000
JNZ 0x000e5320
SUB ESP,0x8
LEA ESI,[EBX + 0x7c04]
PUSH 0x10
PUSH ESI
CALL 0x001005f0
ADD ESP,0x10
TEST EAX,EAX
JLE 0x000e5399
MOV dword ptr [EBX + 0x7c00],EAX
MOV EDX,dword ptr [EBX + 0x7b68]
JMP 0x000e529f
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
CALL 0x00100f90
LEA EDX,[EBX + 0x89a4]
OR dword ptr [EBP],0x800000
ADD ESP,0x10
MOV dword ptr [EAX + 0x8],ESI
MOV dword ptr [EDX],EAX
MOV EDX,dword ptr [EBX + 0x7b68]
MOV dword ptr [EAX + 0x4],EDX
LEA EAX,[EBX + 0x89a8]
LEA EDX,[EBX + 0xfff6e1d0]
MOV dword ptr [EAX],EDX
JMP 0x000e52b0
MOV dword ptr [EBX + 0x7b68],0x2
MOV dword ptr [EBX + 0x7b64],0x2
JMP 0x000e5248
MOV dword ptr [EBX + 0x7b68],0xffffffff
MOV dword ptr [EBX + 0x7b64],0xffffffff
JMP 0x000e5248
MOV EDI,0xffffffff
JMP 0x000e52b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 rl_vi_char_search(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 rl_vi_char_search(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}" type_identifier (function_declarator "rl_vi_char_search(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = DAT_00179c00;" (assignment_expression "iVar2 = DAT_00179c00" identifier = identifier) ;) (if_statement "if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == 0x3b) || (param_2 == 0x2c))" ( (binary_expression "(param_2 == 0x3b) || (param_2 == 0x2c)" (parenthesized_expression "(param_2 == 0x3b)" ( (binary_expression "param_2 == 0x3b" identifier == number_literal) )) || (parenthesized_expression "(param_2 == 0x2c)" ( (binary_expression "param_2 == 0x2c" identifier == number_literal) ))) )) (compound_statement "{\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }" { (if_statement "if (DAT_00179b64 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(DAT_00179b64 == 0)" ( (binary_expression "DAT_00179b64 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (DAT_00179c00 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(DAT_00179c00 == 0)" ( (binary_expression "DAT_00179c00 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "DAT_00179b68 = DAT_00179b64;" (assignment_expression "DAT_00179b68 = DAT_00179b64" identifier = identifier) ;) (if_statement "if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }" if (parenthesized_expression "(param_2 != 0x3b)" ( (binary_expression "param_2 != 0x3b" identifier != number_literal) )) (compound_statement "{\n      DAT_00179b68 = -DAT_00179b64;\n    }" { (expression_statement "DAT_00179b68 = -DAT_00179b64;" (assignment_expression "DAT_00179b68 = -DAT_00179b64" identifier = (unary_expression "-DAT_00179b64" - identifier)) ;) })) }) (else_clause "else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" else (compound_statement "{\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" { (if_statement "if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 == 0x54)" ( (binary_expression "param_2 == 0x54" identifier == number_literal) )) (compound_statement "{\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }" { (expression_statement "DAT_00179b68 = -1;" (assignment_expression "DAT_00179b68 = -1" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = -1;" (assignment_expression "DAT_00179b64 = -1" identifier = number_literal) ;) }) (else_clause "else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" else (if_statement "if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 < 0x55)" ( (binary_expression "param_2 < 0x55" identifier < number_literal) )) (compound_statement "{\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }" { (if_statement "if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }" if (parenthesized_expression "(param_2 == 0x46)" ( (binary_expression "param_2 == 0x46" identifier == number_literal) )) (compound_statement "{\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }" { (expression_statement "DAT_00179b68 = -2;" (assignment_expression "DAT_00179b68 = -2" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = -2;" (assignment_expression "DAT_00179b64 = -2" identifier = number_literal) ;) })) }) (else_clause "else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" else (if_statement "if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 == 0x66)" ( (binary_expression "param_2 == 0x66" identifier == number_literal) )) (compound_statement "{\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }" { (expression_statement "DAT_00179b68 = 2;" (assignment_expression "DAT_00179b68 = 2" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = 2;" (assignment_expression "DAT_00179b64 = 2" identifier = number_literal) ;) }) (else_clause "else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" else (if_statement "if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 == 0x74)" ( (binary_expression "param_2 == 0x74" identifier == number_literal) )) (compound_statement "{\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" { (expression_statement "DAT_00179b68 = 1;" (assignment_expression "DAT_00179b68 = 1" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = 1;" (assignment_expression "DAT_00179b64 = 1" identifier = number_literal) ;) })))))))) (if_statement "if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\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_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }" { (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\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_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }" { (expression_statement "_rl_callback_data = _rl_callback_data_alloc(param_1);" (assignment_expression "_rl_callback_data = _rl_callback_data_alloc(param_1)" identifier = (call_expression "_rl_callback_data_alloc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "rl_readline_state = rl_readline_state | 0x800000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x800000" identifier = (binary_expression "rl_readline_state | 0x800000" identifier | number_literal)) ;) (expression_statement "*(int *)(_rl_callback_data + 8) = param_2;" (assignment_expression "*(int *)(_rl_callback_data + 8) = param_2" (pointer_expression "*(int *)(_rl_callback_data + 8)" * (cast_expression "(int *)(_rl_callback_data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_rl_callback_data + 8)" ( (binary_expression "_rl_callback_data + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(_rl_callback_data + 4) = DAT_00179b68;" (assignment_expression "*(int *)(_rl_callback_data + 4) = DAT_00179b68" (pointer_expression "*(int *)(_rl_callback_data + 4)" * (cast_expression "(int *)(_rl_callback_data + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_rl_callback_data + 4)" ( (binary_expression "_rl_callback_data + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "_rl_callback_func = FUN_000e01d0;" (assignment_expression "_rl_callback_func = FUN_000e01d0" identifier = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);" (assignment_expression "iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10)" identifier = (call_expression "_rl_read_mbchar(&DAT_00179c04,0x10)" identifier (argument_list "(&DAT_00179c04,0x10)" ( (pointer_expression "&DAT_00179c04" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) })) }))) (expression_statement "DAT_00179c00 = iVar2;" (assignment_expression "DAT_00179c00 = iVar2" identifier = identifier) ;) (expression_statement "uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);" (assignment_expression "uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" identifier = (call_expression "_rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" identifier (argument_list "(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" ( identifier , identifier , (pointer_expression "&DAT_00179c04" & identifier) , identifier )))) ;) (return_statement "return uVar1;" 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_char_search(int count,int key)\n\n{\n  int iVar1;\n  \n  iVar1 = _rl_vi_last_search_mblen;\n  if ((key == 0x3b) || (key == 0x2c)) {\n    if (_rl_cs_orig_dir == 0) {\n      return 1;\n    }\n    if (_rl_vi_last_search_mblen == 0) {\n      return 1;\n    }\n    _rl_cs_dir = _rl_cs_orig_dir;\n    if (key != 0x3b) {\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }\n  }\n  else {\n    if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }\n  }\n  _rl_vi_last_search_mblen = iVar1;\n  iVar1 = _rl_char_search_internal\n                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  return iVar1;\n}\n\n" comment comment (function_definition "int rl_vi_char_search(int count,int key)\n\n{\n  int iVar1;\n  \n  iVar1 = _rl_vi_last_search_mblen;\n  if ((key == 0x3b) || (key == 0x2c)) {\n    if (_rl_cs_orig_dir == 0) {\n      return 1;\n    }\n    if (_rl_vi_last_search_mblen == 0) {\n      return 1;\n    }\n    _rl_cs_dir = _rl_cs_orig_dir;\n    if (key != 0x3b) {\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }\n  }\n  else {\n    if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }\n  }\n  _rl_vi_last_search_mblen = iVar1;\n  iVar1 = _rl_char_search_internal\n                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  return iVar1;\n}" primitive_type (function_declarator "rl_vi_char_search(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  \n  iVar1 = _rl_vi_last_search_mblen;\n  if ((key == 0x3b) || (key == 0x2c)) {\n    if (_rl_cs_orig_dir == 0) {\n      return 1;\n    }\n    if (_rl_vi_last_search_mblen == 0) {\n      return 1;\n    }\n    _rl_cs_dir = _rl_cs_orig_dir;\n    if (key != 0x3b) {\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }\n  }\n  else {\n    if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }\n  }\n  _rl_vi_last_search_mblen = iVar1;\n  iVar1 = _rl_char_search_internal\n                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = _rl_vi_last_search_mblen;" (assignment_expression "iVar1 = _rl_vi_last_search_mblen" identifier = identifier) ;) (if_statement "if ((key == 0x3b) || (key == 0x2c)) {\n    if (_rl_cs_orig_dir == 0) {\n      return 1;\n    }\n    if (_rl_vi_last_search_mblen == 0) {\n      return 1;\n    }\n    _rl_cs_dir = _rl_cs_orig_dir;\n    if (key != 0x3b) {\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }\n  }\n  else {\n    if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }\n  }" if (parenthesized_expression "((key == 0x3b) || (key == 0x2c))" ( (binary_expression "(key == 0x3b) || (key == 0x2c)" (parenthesized_expression "(key == 0x3b)" ( (binary_expression "key == 0x3b" identifier == number_literal) )) || (parenthesized_expression "(key == 0x2c)" ( (binary_expression "key == 0x2c" identifier == number_literal) ))) )) (compound_statement "{\n    if (_rl_cs_orig_dir == 0) {\n      return 1;\n    }\n    if (_rl_vi_last_search_mblen == 0) {\n      return 1;\n    }\n    _rl_cs_dir = _rl_cs_orig_dir;\n    if (key != 0x3b) {\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }\n  }" { (if_statement "if (_rl_cs_orig_dir == 0) {\n      return 1;\n    }" if (parenthesized_expression "(_rl_cs_orig_dir == 0)" ( (binary_expression "_rl_cs_orig_dir == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (_rl_vi_last_search_mblen == 0) {\n      return 1;\n    }" if (parenthesized_expression "(_rl_vi_last_search_mblen == 0)" ( (binary_expression "_rl_vi_last_search_mblen == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "_rl_cs_dir = _rl_cs_orig_dir;" (assignment_expression "_rl_cs_dir = _rl_cs_orig_dir" identifier = identifier) ;) (if_statement "if (key != 0x3b) {\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }" if (parenthesized_expression "(key != 0x3b)" ( (binary_expression "key != 0x3b" identifier != number_literal) )) (compound_statement "{\n      _rl_cs_dir = -_rl_cs_orig_dir;\n    }" { (expression_statement "_rl_cs_dir = -_rl_cs_orig_dir;" (assignment_expression "_rl_cs_dir = -_rl_cs_orig_dir" identifier = (unary_expression "-_rl_cs_orig_dir" - identifier)) ;) })) }) (else_clause "else {\n    if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }\n  }" else (compound_statement "{\n    if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }\n  }" { (if_statement "if (key == 0x54) {\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }\n    else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" if (parenthesized_expression "(key == 0x54)" ( (binary_expression "key == 0x54" identifier == number_literal) )) (compound_statement "{\n      _rl_cs_dir = -1;\n      _rl_cs_orig_dir = -1;\n    }" { (expression_statement "_rl_cs_dir = -1;" (assignment_expression "_rl_cs_dir = -1" identifier = number_literal) ;) (expression_statement "_rl_cs_orig_dir = -1;" (assignment_expression "_rl_cs_orig_dir = -1" identifier = number_literal) ;) }) (else_clause "else if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" else (if_statement "if (key < 0x55) {\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }\n    else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" if (parenthesized_expression "(key < 0x55)" ( (binary_expression "key < 0x55" identifier < number_literal) )) (compound_statement "{\n      if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }\n    }" { (if_statement "if (key == 0x46) {\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }" if (parenthesized_expression "(key == 0x46)" ( (binary_expression "key == 0x46" identifier == number_literal) )) (compound_statement "{\n        _rl_cs_dir = -2;\n        _rl_cs_orig_dir = -2;\n      }" { (expression_statement "_rl_cs_dir = -2;" (assignment_expression "_rl_cs_dir = -2" identifier = number_literal) ;) (expression_statement "_rl_cs_orig_dir = -2;" (assignment_expression "_rl_cs_orig_dir = -2" identifier = number_literal) ;) })) }) (else_clause "else if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" else (if_statement "if (key == 0x66) {\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }\n    else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" if (parenthesized_expression "(key == 0x66)" ( (binary_expression "key == 0x66" identifier == number_literal) )) (compound_statement "{\n      _rl_cs_dir = 2;\n      _rl_cs_orig_dir = 2;\n    }" { (expression_statement "_rl_cs_dir = 2;" (assignment_expression "_rl_cs_dir = 2" identifier = number_literal) ;) (expression_statement "_rl_cs_orig_dir = 2;" (assignment_expression "_rl_cs_orig_dir = 2" identifier = number_literal) ;) }) (else_clause "else if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" else (if_statement "if (key == 0x74) {\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" if (parenthesized_expression "(key == 0x74)" ( (binary_expression "key == 0x74" identifier == number_literal) )) (compound_statement "{\n      _rl_cs_dir = 1;\n      _rl_cs_orig_dir = 1;\n    }" { (expression_statement "_rl_cs_dir = 1;" (assignment_expression "_rl_cs_dir = 1" identifier = number_literal) ;) (expression_statement "_rl_cs_orig_dir = 1;" (assignment_expression "_rl_cs_orig_dir = 1" identifier = number_literal) ;) })))))))) (if_statement "if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\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_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }\n      iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n      if (iVar1 < 1) {\n        return -1;\n      }\n    }" { (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\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_callback_data = _rl_callback_data_alloc(count);\n        rl_readline_state = rl_readline_state | 0x800000;\n        _rl_callback_data->i2 = key;\n        _rl_callback_data->i1 = _rl_cs_dir;\n        _rl_callback_func = _rl_vi_callback_char_search;\n        return 0;\n      }" { (expression_statement "_rl_callback_data = _rl_callback_data_alloc(count);" (assignment_expression "_rl_callback_data = _rl_callback_data_alloc(count)" identifier = (call_expression "_rl_callback_data_alloc(count)" identifier (argument_list "(count)" ( identifier )))) ;) (expression_statement "rl_readline_state = rl_readline_state | 0x800000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x800000" identifier = (binary_expression "rl_readline_state | 0x800000" identifier | number_literal)) ;) (expression_statement "_rl_callback_data->i2 = key;" (assignment_expression "_rl_callback_data->i2 = key" (field_expression "_rl_callback_data->i2" identifier -> field_identifier) = identifier) ;) (expression_statement "_rl_callback_data->i1 = _rl_cs_dir;" (assignment_expression "_rl_callback_data->i1 = _rl_cs_dir" (field_expression "_rl_callback_data->i1" identifier -> field_identifier) = identifier) ;) (expression_statement "_rl_callback_func = _rl_vi_callback_char_search;" (assignment_expression "_rl_callback_func = _rl_vi_callback_char_search" identifier = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);" (assignment_expression "iVar1 = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10)" identifier = (call_expression "_rl_read_mbchar(_rl_vi_last_search_mbchar,0x10)" identifier (argument_list "(_rl_vi_last_search_mbchar,0x10)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 < 1) {\n        return -1;\n      }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n        return -1;\n      }" { (return_statement "return -1;" return number_literal ;) })) })) }))) (expression_statement "_rl_vi_last_search_mblen = iVar1;" (assignment_expression "_rl_vi_last_search_mblen = iVar1" identifier = identifier) ;) (expression_statement "iVar1 = _rl_char_search_internal\n                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);" (assignment_expression "iVar1 = _rl_char_search_internal\n                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen)" identifier = (call_expression "_rl_char_search_internal\n                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen)" identifier (argument_list "(count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen)" ( identifier , identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 rl_vi_char_search(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}\n\n" (function_definition "undefined4 rl_vi_char_search(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}" type_identifier (function_declarator "rl_vi_char_search(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = DAT_00179c00;" (assignment_expression "iVar2 = DAT_00179c00" identifier = identifier) ;) (if_statement "if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == 0x3b) || (param_2 == 0x2c))" ( (binary_expression "(param_2 == 0x3b) || (param_2 == 0x2c)" (parenthesized_expression "(param_2 == 0x3b)" ( (binary_expression "param_2 == 0x3b" identifier == number_literal) )) || (parenthesized_expression "(param_2 == 0x2c)" ( (binary_expression "param_2 == 0x2c" identifier == number_literal) ))) )) (compound_statement "{\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }" { (if_statement "if (DAT_00179b64 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(DAT_00179b64 == 0)" ( (binary_expression "DAT_00179b64 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (DAT_00179c00 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(DAT_00179c00 == 0)" ( (binary_expression "DAT_00179c00 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "DAT_00179b68 = DAT_00179b64;" (assignment_expression "DAT_00179b68 = DAT_00179b64" identifier = identifier) ;) (if_statement "if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }" if (parenthesized_expression "(param_2 != 0x3b)" ( (binary_expression "param_2 != 0x3b" identifier != number_literal) )) (compound_statement "{\n      DAT_00179b68 = -DAT_00179b64;\n    }" { (expression_statement "DAT_00179b68 = -DAT_00179b64;" (assignment_expression "DAT_00179b68 = -DAT_00179b64" identifier = (unary_expression "-DAT_00179b64" - identifier)) ;) })) }) (else_clause "else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" else (compound_statement "{\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" { (if_statement "if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 == 0x54)" ( (binary_expression "param_2 == 0x54" identifier == number_literal) )) (compound_statement "{\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }" { (expression_statement "DAT_00179b68 = -1;" (assignment_expression "DAT_00179b68 = -1" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = -1;" (assignment_expression "DAT_00179b64 = -1" identifier = number_literal) ;) }) (else_clause "else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" else (if_statement "if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 < 0x55)" ( (binary_expression "param_2 < 0x55" identifier < number_literal) )) (compound_statement "{\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }" { (if_statement "if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }" if (parenthesized_expression "(param_2 == 0x46)" ( (binary_expression "param_2 == 0x46" identifier == number_literal) )) (compound_statement "{\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }" { (expression_statement "DAT_00179b68 = -2;" (assignment_expression "DAT_00179b68 = -2" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = -2;" (assignment_expression "DAT_00179b64 = -2" identifier = number_literal) ;) })) }) (else_clause "else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" else (if_statement "if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 == 0x66)" ( (binary_expression "param_2 == 0x66" identifier == number_literal) )) (compound_statement "{\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }" { (expression_statement "DAT_00179b68 = 2;" (assignment_expression "DAT_00179b68 = 2" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = 2;" (assignment_expression "DAT_00179b64 = 2" identifier = number_literal) ;) }) (else_clause "else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" else (if_statement "if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" if (parenthesized_expression "(param_2 == 0x74)" ( (binary_expression "param_2 == 0x74" identifier == number_literal) )) (compound_statement "{\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" { (expression_statement "DAT_00179b68 = 1;" (assignment_expression "DAT_00179b68 = 1" identifier = number_literal) ;) (expression_statement "DAT_00179b64 = 1;" (assignment_expression "DAT_00179b64 = 1" identifier = number_literal) ;) })))))))) (if_statement "if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\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_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }" { (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\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_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }" { (expression_statement "_rl_callback_data = _rl_callback_data_alloc(param_1);" (assignment_expression "_rl_callback_data = _rl_callback_data_alloc(param_1)" identifier = (call_expression "_rl_callback_data_alloc(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "rl_readline_state = rl_readline_state | 0x800000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x800000" identifier = (binary_expression "rl_readline_state | 0x800000" identifier | number_literal)) ;) (expression_statement "*(int *)(_rl_callback_data + 8) = param_2;" (assignment_expression "*(int *)(_rl_callback_data + 8) = param_2" (pointer_expression "*(int *)(_rl_callback_data + 8)" * (cast_expression "(int *)(_rl_callback_data + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_rl_callback_data + 8)" ( (binary_expression "_rl_callback_data + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(_rl_callback_data + 4) = DAT_00179b68;" (assignment_expression "*(int *)(_rl_callback_data + 4) = DAT_00179b68" (pointer_expression "*(int *)(_rl_callback_data + 4)" * (cast_expression "(int *)(_rl_callback_data + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_rl_callback_data + 4)" ( (binary_expression "_rl_callback_data + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "_rl_callback_func = FUN_000e01d0;" (assignment_expression "_rl_callback_func = FUN_000e01d0" identifier = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);" (assignment_expression "iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10)" identifier = (call_expression "_rl_read_mbchar(&DAT_00179c04,0x10)" identifier (argument_list "(&DAT_00179c04,0x10)" ( (pointer_expression "&DAT_00179c04" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 < 1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) })) }))) (expression_statement "DAT_00179c00 = iVar2;" (assignment_expression "DAT_00179c00 = iVar2" identifier = identifier) ;) (expression_statement "uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);" (assignment_expression "uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" identifier = (call_expression "_rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" identifier (argument_list "(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" ( identifier , identifier , (pointer_expression "&DAT_00179c04" & identifier) , identifier )))) ;) (return_statement "return uVar1;" 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 IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })))))))) (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 = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 rl_vi_char_search(undefined4 param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "rl_vi_char_search(undefined4 param_1,int param_2)" (identifier "rl_vi_char_search") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = DAT_00179c00;\n  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }\n  DAT_00179c00 = iVar2;\n  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = DAT_00179c00;" (assignment_expression "iVar2 = DAT_00179c00" (identifier "iVar2") (= "=") (identifier "DAT_00179c00")) (; ";")) (if_statement "if ((param_2 == 0x3b) || (param_2 == 0x2c)) {\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }\n  else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == 0x3b) || (param_2 == 0x2c))" (( "(") (binary_expression "(param_2 == 0x3b) || (param_2 == 0x2c)" (parenthesized_expression "(param_2 == 0x3b)" (( "(") (binary_expression "param_2 == 0x3b" (identifier "param_2") (== "==") (number_literal "0x3b")) () ")")) (|| "||") (parenthesized_expression "(param_2 == 0x2c)" (( "(") (binary_expression "param_2 == 0x2c" (identifier "param_2") (== "==") (number_literal "0x2c")) () ")"))) () ")")) (compound_statement "{\n    if (DAT_00179b64 == 0) {\n      return 1;\n    }\n    if (DAT_00179c00 == 0) {\n      return 1;\n    }\n    DAT_00179b68 = DAT_00179b64;\n    if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }\n  }" ({ "{") (if_statement "if (DAT_00179b64 == 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(DAT_00179b64 == 0)" (( "(") (binary_expression "DAT_00179b64 == 0" (identifier "DAT_00179b64") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (DAT_00179c00 == 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(DAT_00179c00 == 0)" (( "(") (binary_expression "DAT_00179c00 == 0" (identifier "DAT_00179c00") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "DAT_00179b68 = DAT_00179b64;" (assignment_expression "DAT_00179b68 = DAT_00179b64" (identifier "DAT_00179b68") (= "=") (identifier "DAT_00179b64")) (; ";")) (if_statement "if (param_2 != 0x3b) {\n      DAT_00179b68 = -DAT_00179b64;\n    }" (if "if") (parenthesized_expression "(param_2 != 0x3b)" (( "(") (binary_expression "param_2 != 0x3b" (identifier "param_2") (!= "!=") (number_literal "0x3b")) () ")")) (compound_statement "{\n      DAT_00179b68 = -DAT_00179b64;\n    }" ({ "{") (expression_statement "DAT_00179b68 = -DAT_00179b64;" (assignment_expression "DAT_00179b68 = -DAT_00179b64" (identifier "DAT_00179b68") (= "=") (unary_expression "-DAT_00179b64" (- "-") (identifier "DAT_00179b64"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }\n    if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }\n  }" ({ "{") (if_statement "if (param_2 == 0x54) {\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }\n    else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0x54)" (( "(") (binary_expression "param_2 == 0x54" (identifier "param_2") (== "==") (number_literal "0x54")) () ")")) (compound_statement "{\n      DAT_00179b68 = -1;\n      DAT_00179b64 = -1;\n    }" ({ "{") (expression_statement "DAT_00179b68 = -1;" (assignment_expression "DAT_00179b68 = -1" (identifier "DAT_00179b68") (= "=") (number_literal "-1")) (; ";")) (expression_statement "DAT_00179b64 = -1;" (assignment_expression "DAT_00179b64 = -1" (identifier "DAT_00179b64") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (else "else") (if_statement "if (param_2 < 0x55) {\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }\n    else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (if "if") (parenthesized_expression "(param_2 < 0x55)" (( "(") (binary_expression "param_2 < 0x55" (identifier "param_2") (< "<") (number_literal "0x55")) () ")")) (compound_statement "{\n      if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }\n    }" ({ "{") (if_statement "if (param_2 == 0x46) {\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }" (if "if") (parenthesized_expression "(param_2 == 0x46)" (( "(") (binary_expression "param_2 == 0x46" (identifier "param_2") (== "==") (number_literal "0x46")) () ")")) (compound_statement "{\n        DAT_00179b68 = -2;\n        DAT_00179b64 = -2;\n      }" ({ "{") (expression_statement "DAT_00179b68 = -2;" (assignment_expression "DAT_00179b68 = -2" (identifier "DAT_00179b68") (= "=") (number_literal "-2")) (; ";")) (expression_statement "DAT_00179b64 = -2;" (assignment_expression "DAT_00179b64 = -2" (identifier "DAT_00179b64") (= "=") (number_literal "-2")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (else "else") (if_statement "if (param_2 == 0x66) {\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }\n    else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0x66)" (( "(") (binary_expression "param_2 == 0x66" (identifier "param_2") (== "==") (number_literal "0x66")) () ")")) (compound_statement "{\n      DAT_00179b68 = 2;\n      DAT_00179b64 = 2;\n    }" ({ "{") (expression_statement "DAT_00179b68 = 2;" (assignment_expression "DAT_00179b68 = 2" (identifier "DAT_00179b68") (= "=") (number_literal "2")) (; ";")) (expression_statement "DAT_00179b64 = 2;" (assignment_expression "DAT_00179b64 = 2" (identifier "DAT_00179b64") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (else "else") (if_statement "if (param_2 == 0x74) {\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" (if "if") (parenthesized_expression "(param_2 == 0x74)" (( "(") (binary_expression "param_2 == 0x74" (identifier "param_2") (== "==") (number_literal "0x74")) () ")")) (compound_statement "{\n      DAT_00179b68 = 1;\n      DAT_00179b64 = 1;\n    }" ({ "{") (expression_statement "DAT_00179b68 = 1;" (assignment_expression "DAT_00179b68 = 1" (identifier "DAT_00179b68") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_00179b64 = 1;" (assignment_expression "DAT_00179b64 = 1" (identifier "DAT_00179b64") (= "=") (number_literal "1")) (; ";")) (} "}"))))))))) (if_statement "if (_rl_vi_redoing == 0) {\n      if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\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_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }\n      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);\n      if (iVar2 < 1) {\n        return 0xffffffff;\n      }\n    }" ({ "{") (if_statement "if ((rl_readline_state & 0x80000) != 0) {\n        _rl_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\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_callback_data = _rl_callback_data_alloc(param_1);\n        rl_readline_state = rl_readline_state | 0x800000;\n        *(int *)(_rl_callback_data + 8) = param_2;\n        *(int *)(_rl_callback_data + 4) = DAT_00179b68;\n        _rl_callback_func = FUN_000e01d0;\n        return 0;\n      }" ({ "{") (expression_statement "_rl_callback_data = _rl_callback_data_alloc(param_1);" (assignment_expression "_rl_callback_data = _rl_callback_data_alloc(param_1)" (identifier "_rl_callback_data") (= "=") (call_expression "_rl_callback_data_alloc(param_1)" (identifier "_rl_callback_data_alloc") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "rl_readline_state = rl_readline_state | 0x800000;" (assignment_expression "rl_readline_state = rl_readline_state | 0x800000" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state | 0x800000" (identifier "rl_readline_state") (| "|") (number_literal "0x800000"))) (; ";")) (expression_statement "*(int *)(_rl_callback_data + 8) = param_2;" (assignment_expression "*(int *)(_rl_callback_data + 8) = param_2" (pointer_expression "*(int *)(_rl_callback_data + 8)" (* "*") (cast_expression "(int *)(_rl_callback_data + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(_rl_callback_data + 8)" (( "(") (binary_expression "_rl_callback_data + 8" (identifier "_rl_callback_data") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)(_rl_callback_data + 4) = DAT_00179b68;" (assignment_expression "*(int *)(_rl_callback_data + 4) = DAT_00179b68" (pointer_expression "*(int *)(_rl_callback_data + 4)" (* "*") (cast_expression "(int *)(_rl_callback_data + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(_rl_callback_data + 4)" (( "(") (binary_expression "_rl_callback_data + 4" (identifier "_rl_callback_data") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "DAT_00179b68")) (; ";")) (expression_statement "_rl_callback_func = FUN_000e01d0;" (assignment_expression "_rl_callback_func = FUN_000e01d0" (identifier "_rl_callback_func") (= "=") (identifier "FUN_000e01d0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);" (assignment_expression "iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10)" (identifier "iVar2") (= "=") (call_expression "_rl_read_mbchar(&DAT_00179c04,0x10)" (identifier "_rl_read_mbchar") (argument_list "(&DAT_00179c04,0x10)" (( "(") (pointer_expression "&DAT_00179c04" (& "&") (identifier "DAT_00179c04")) (, ",") (number_literal "0x10") () ")")))) (; ";")) (if_statement "if (iVar2 < 1) {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (} "}"))) (} "}")))) (expression_statement "DAT_00179c00 = iVar2;" (assignment_expression "DAT_00179c00 = iVar2" (identifier "DAT_00179c00") (= "=") (identifier "iVar2")) (; ";")) (expression_statement "uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);" (assignment_expression "uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" (identifier "uVar1") (= "=") (call_expression "_rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" (identifier "_rl_char_search_internal") (argument_list "(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00)" (( "(") (identifier "param_1") (, ",") (identifier "DAT_00179b68") (, ",") (pointer_expression "&DAT_00179c04" (& "&") (identifier "DAT_00179c04")) (, ",") (identifier "DAT_00179c00") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* 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_1)

{
  int var_8;
  
  var_8 = var_3;
  if ((var_1 == 0x3b) || (var_1 == 0x2c)) {
    if (var_2 == 0) {
      return 1;
    }
    if (var_3 == 0) {
      return 1;
    }
    _rl_cs_dir = var_2;
    if (var_1 != 0x3b) {
      _rl_cs_dir = -var_2;
    }
  }
  else {
    if (var_1 == 0x54) {
      _rl_cs_dir = -1;
      var_2 = -1;
    }
    else if (var_1 < 0x55) {
      if (var_1 == 0x46) {
        _rl_cs_dir = -2;
        var_2 = -2;
      }
    }
    else if (var_1 == 0x66) {
      _rl_cs_dir = 2;
      var_2 = 2;
    }
    else if (var_1 == 0x74) {
      _rl_cs_dir = 1;
      var_2 = 1;
    }
    if (var_4 == 0) {
      if ((var_5 & 0x80000) != 0) {
        _rl_callback_data = var_6(count);
        var_5 = var_5 | 0x800000;
        _rl_callback_data->i2 = var_1;
        _rl_callback_data->i1 = _rl_cs_dir;
        _rl_callback_func = _rl_vi_callback_char_search;
        return 0;
      }
      var_8 = var_7(_rl_vi_last_search_mbchar,0x10);
      if (var_8 < 1) {
        return -1;
      }
    }
  }
  var_3 = var_8;
  var_8 = var_9
                    (count,_rl_cs_dir,_rl_vi_last_search_mbchar,var_3);
  return var_8;
}


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

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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = DAT_00179c00;
  if ((param_2 == 0x3b) || (param_2 == 0x2c)) {
    if (DAT_00179b64 == 0) {
      return 1;
    }
    if (DAT_00179c00 == 0) {
      return 1;
    }
    DAT_00179b68 = DAT_00179b64;
    if (param_2 != 0x3b) {
      DAT_00179b68 = -DAT_00179b64;
    }
  }
  else {
    if (param_2 == 0x54) {
      DAT_00179b68 = -1;
      DAT_00179b64 = -1;
    }
    else if (param_2 < 0x55) {
      if (param_2 == 0x46) {
        DAT_00179b68 = -2;
        DAT_00179b64 = -2;
      }
    }
    else if (param_2 == 0x66) {
      DAT_00179b68 = 2;
      DAT_00179b64 = 2;
    }
    else if (param_2 == 0x74) {
      DAT_00179b68 = 1;
      DAT_00179b64 = 1;
    }
    if (_rl_vi_redoing == 0) {
      if ((rl_readline_state & 0x80000) != 0) {
        _rl_callback_data = _rl_callback_data_alloc(param_1);
        rl_readline_state = rl_readline_state | 0x800000;
        *(int *)(_rl_callback_data + 8) = param_2;
        *(int *)(_rl_callback_data + 4) = DAT_00179b68;
        _rl_callback_func = FUN_000e01d0;
        return 0;
      }
      iVar2 = _rl_read_mbchar(&DAT_00179c04,0x10);
      if (iVar2 < 1) {
        return 0xffffffff;
      }
    }
  }
  DAT_00179c00 = iVar2;
  uVar1 = _rl_char_search_internal(param_1,DAT_00179b68,&DAT_00179c04,DAT_00179c00);
  return uVar1;
}

