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

int _rl_vi_callback_char_search(_rl_callback_generic_arg *data)

{
  int iVar1;
  
  _rl_vi_last_search_mblen = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);
  if (_rl_vi_last_search_mblen < 1) {
    rl_readline_state = rl_readline_state & 0xff7fffff;
    iVar1 = -1;
  }
  else {
    _rl_callback_func = (_rl_callback_func_t *)0x0;
    _rl_want_redisplay = 1;
    rl_readline_state = rl_readline_state & 0xff7fffff;
    iVar1 = _rl_char_search_internal
                      (data->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 FUN_000c5f60(undefined4 *param_1)

{
  undefined4 uVar1;
  
  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);
  if (DAT_00151c00 < 1) {
    rl_readline_state = rl_readline_state & 0xff7fffff;
    uVar1 = 0xffffffff;
  }
  else {
    _rl_callback_func = 0;
    _rl_want_redisplay = 1;
    rl_readline_state = rl_readline_state & 0xff7fffff;
    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);
  }
  return uVar1;
}


PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x84099
SUB ESP,0xc
PUSH 0x10
LEA ESI,[EBX + 0x7c04]
PUSH ESI
CALL 0x000dffa0
ADD ESP,0x10
MOV dword ptr [EBX + 0x7c00],EAX
TEST EAX,EAX
JLE 0x000c5fd0
LEA EDX,[EBX + 0x89a8]
MOV dword ptr [EDX],0x0
LEA EDX,[EBX + 0x7ecc]
MOV dword ptr [EDX],0x1
LEA EDX,[EBX + 0x7b44]
AND dword ptr [EDX],0xff7fffff
PUSH EAX
PUSH ESI
PUSH dword ptr [EBX + 0x7b68]
MOV EAX,dword ptr [ESP + 0x1c]
PUSH dword ptr [EAX]
CALL 0x000e41d0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
LEA EAX,[EBX + 0x7b44]
AND dword ptr [EAX],0xff7fffff
MOV EAX,0xffffffff
JMP 0x000c5fc5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_000c5f60(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 FUN_000c5f60(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000c5f60(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);" (assignment_expression "DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10)" identifier = (call_expression "_rl_read_mbchar(&DAT_00151c04,0x10)" identifier (argument_list "(&DAT_00151c04,0x10)" ( (pointer_expression "&DAT_00151c04" & identifier) , number_literal )))) ;) (if_statement "if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" if (parenthesized_expression "(DAT_00151c00 < 1)" ( (binary_expression "DAT_00151c00 < 1" identifier < number_literal) )) (compound_statement "{\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" identifier = (binary_expression "rl_readline_state & 0xff7fffff" identifier & number_literal)) ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" else (compound_statement "{\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" { (expression_statement "_rl_callback_func = 0;" (assignment_expression "_rl_callback_func = 0" identifier = number_literal) ;) (expression_statement "_rl_want_redisplay = 1;" (assignment_expression "_rl_want_redisplay = 1" identifier = number_literal) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" identifier = (binary_expression "rl_readline_state & 0xff7fffff" identifier & number_literal)) ;) (expression_statement "uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);" (assignment_expression "uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" identifier = (call_expression "_rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" identifier (argument_list "(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" ( (pointer_expression "*param_1" * identifier) , identifier , (pointer_expression "&DAT_00151c04" & 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_callback_char_search(_rl_callback_generic_arg *data)\n\n{\n  int iVar1;\n  \n  _rl_vi_last_search_mblen = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n  if (_rl_vi_last_search_mblen < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = -1;\n  }\n  else {\n    _rl_callback_func = (_rl_callback_func_t *)0x0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int _rl_vi_callback_char_search(_rl_callback_generic_arg *data)\n\n{\n  int iVar1;\n  \n  _rl_vi_last_search_mblen = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n  if (_rl_vi_last_search_mblen < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = -1;\n  }\n  else {\n    _rl_callback_func = (_rl_callback_func_t *)0x0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_vi_callback_char_search(_rl_callback_generic_arg *data)" identifier (parameter_list "(_rl_callback_generic_arg *data)" ( (parameter_declaration "_rl_callback_generic_arg *data" type_identifier (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  _rl_vi_last_search_mblen = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);\n  if (_rl_vi_last_search_mblen < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = -1;\n  }\n  else {\n    _rl_callback_func = (_rl_callback_func_t *)0x0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "_rl_vi_last_search_mblen = _rl_read_mbchar(_rl_vi_last_search_mbchar,0x10);" (assignment_expression "_rl_vi_last_search_mblen = _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 (_rl_vi_last_search_mblen < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = -1;\n  }\n  else {\n    _rl_callback_func = (_rl_callback_func_t *)0x0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  }" if (parenthesized_expression "(_rl_vi_last_search_mblen < 1)" ( (binary_expression "_rl_vi_last_search_mblen < 1" identifier < number_literal) )) (compound_statement "{\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = -1;\n  }" { (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" identifier = (binary_expression "rl_readline_state & 0xff7fffff" identifier & number_literal)) ;) (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    _rl_callback_func = (_rl_callback_func_t *)0x0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  }" else (compound_statement "{\n    _rl_callback_func = (_rl_callback_func_t *)0x0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);\n  }" { (expression_statement "_rl_callback_func = (_rl_callback_func_t *)0x0;" (assignment_expression "_rl_callback_func = (_rl_callback_func_t *)0x0" identifier = (cast_expression "(_rl_callback_func_t *)0x0" ( (type_descriptor "_rl_callback_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "_rl_want_redisplay = 1;" (assignment_expression "_rl_want_redisplay = 1" identifier = number_literal) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" identifier = (binary_expression "rl_readline_state & 0xff7fffff" identifier & number_literal)) ;) (expression_statement "iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen);" (assignment_expression "iVar1 = _rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen)" identifier = (call_expression "_rl_char_search_internal\n                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen)" identifier (argument_list "(data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,_rl_vi_last_search_mblen)" ( (field_expression "data->count" identifier -> field_identifier) , identifier , identifier , identifier )))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_000c5f60(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000c5f60(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000c5f60(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);" (assignment_expression "DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10)" identifier = (call_expression "_rl_read_mbchar(&DAT_00151c04,0x10)" identifier (argument_list "(&DAT_00151c04,0x10)" ( (pointer_expression "&DAT_00151c04" & identifier) , number_literal )))) ;) (if_statement "if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" if (parenthesized_expression "(DAT_00151c00 < 1)" ( (binary_expression "DAT_00151c00 < 1" identifier < number_literal) )) (compound_statement "{\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }" { (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" identifier = (binary_expression "rl_readline_state & 0xff7fffff" identifier & number_literal)) ;) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" else (compound_statement "{\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" { (expression_statement "_rl_callback_func = 0;" (assignment_expression "_rl_callback_func = 0" identifier = number_literal) ;) (expression_statement "_rl_want_redisplay = 1;" (assignment_expression "_rl_want_redisplay = 1" identifier = number_literal) ;) (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" identifier = (binary_expression "rl_readline_state & 0xff7fffff" identifier & number_literal)) ;) (expression_statement "uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);" (assignment_expression "uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" identifier = (call_expression "_rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" identifier (argument_list "(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" ( (pointer_expression "*param_1" * identifier) , identifier , (pointer_expression "&DAT_00151c04" & identifier) , identifier )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression & IDENT) , IDENT )))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000c5f60(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000c5f60(undefined4 *param_1)" (identifier "FUN_000c5f60") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);\n  if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);" (assignment_expression "DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10)" (identifier "DAT_00151c00") (= "=") (call_expression "_rl_read_mbchar(&DAT_00151c04,0x10)" (identifier "_rl_read_mbchar") (argument_list "(&DAT_00151c04,0x10)" (( "(") (pointer_expression "&DAT_00151c04" (& "&") (identifier "DAT_00151c04")) (, ",") (number_literal "0x10") () ")")))) (; ";")) (if_statement "if (DAT_00151c00 < 1) {\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }\n  else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" (if "if") (parenthesized_expression "(DAT_00151c00 < 1)" (( "(") (binary_expression "DAT_00151c00 < 1" (identifier "DAT_00151c00") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = 0xffffffff;\n  }" ({ "{") (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state & 0xff7fffff" (identifier "rl_readline_state") (& "&") (number_literal "0xff7fffff"))) (; ";")) (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" (else "else") (compound_statement "{\n    _rl_callback_func = 0;\n    _rl_want_redisplay = 1;\n    rl_readline_state = rl_readline_state & 0xff7fffff;\n    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);\n  }" ({ "{") (expression_statement "_rl_callback_func = 0;" (assignment_expression "_rl_callback_func = 0" (identifier "_rl_callback_func") (= "=") (number_literal "0")) (; ";")) (expression_statement "_rl_want_redisplay = 1;" (assignment_expression "_rl_want_redisplay = 1" (identifier "_rl_want_redisplay") (= "=") (number_literal "1")) (; ";")) (expression_statement "rl_readline_state = rl_readline_state & 0xff7fffff;" (assignment_expression "rl_readline_state = rl_readline_state & 0xff7fffff" (identifier "rl_readline_state") (= "=") (binary_expression "rl_readline_state & 0xff7fffff" (identifier "rl_readline_state") (& "&") (number_literal "0xff7fffff"))) (; ";")) (expression_statement "uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);" (assignment_expression "uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" (identifier "uVar1") (= "=") (call_expression "_rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" (identifier "_rl_char_search_internal") (argument_list "(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "DAT_00151b68") (, ",") (pointer_expression "&DAT_00151c04" (& "&") (identifier "DAT_00151c04")) (, ",") (identifier "DAT_00151c00") () ")")))) (; ";")) (} "}")))) (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(type_1 *data)

{
  int iVar1;
  
  var_2 = var_1(_rl_vi_last_search_mbchar,0x10);
  if (var_2 < 1) {
    var_3 = var_3 & 0xff7fffff;
    iVar1 = -1;
  }
  else {
    _rl_callback_func = (type_2 *)0x0;
    _rl_want_redisplay = 1;
    var_3 = var_3 & 0xff7fffff;
    iVar1 = var_4
                      (data->count,_rl_cs_dir,_rl_vi_last_search_mbchar,var_2);
  }
  return iVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (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 (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (pointer_expression argument: (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)

{
  undefined4 uVar1;
  
  DAT_00151c00 = _rl_read_mbchar(&DAT_00151c04,0x10);
  if (DAT_00151c00 < 1) {
    rl_readline_state = rl_readline_state & 0xff7fffff;
    uVar1 = 0xffffffff;
  }
  else {
    _rl_callback_func = 0;
    _rl_want_redisplay = 1;
    rl_readline_state = rl_readline_state & 0xff7fffff;
    uVar1 = _rl_char_search_internal(*param_1,DAT_00151b68,&DAT_00151c04,DAT_00151c00);
  }
  return uVar1;
}

