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

int _rl_backspace(int count)

{
  int iVar1;
  
  if (_rl_term_backspace == (char *)0x0) {
    iVar1 = 0;
    if (0 < count) {
      do {
        iVar1 = iVar1 + 1;
        putc(8,(FILE *)_rl_out_stream);
      } while (count != iVar1);
      return 0;
    }
  }
  else if (0 < count) {
    iVar1 = 0;
    do {
      iVar1 = iVar1 + 1;
      tputs(_rl_term_backspace,1,_rl_output_character_function);
    } while (count != iVar1);
  }
  return 0;
}



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

undefined4 _rl_backspace(int param_1)

{
  int iVar1;
  
  if (_rl_term_backspace == 0) {
    iVar1 = 0;
    if (0 < param_1) {
      do {
        iVar1 = iVar1 + 1;
        putc(8,_rl_out_stream);
      } while (param_1 != iVar1);
      return 0;
    }
  }
  else if (0 < param_1) {
    iVar1 = 0;
    do {
      iVar1 = iVar1 + 1;
      tputs(_rl_term_backspace,1,_rl_output_character_function);
    } while (param_1 != iVar1);
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x68a17
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
LEA EDI,[EBX + 0xda88]
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x000e1640
TEST ESI,ESI
JLE 0x000e1633
LEA EDX,[EBX + 0xfff96a10]
XOR EBP,EBP
MOV dword ptr [ESP + 0xc],EDX
JMP 0x000e161a
MOV EAX,dword ptr [EDI]
SUB ESP,0x4
ADD EBP,0x1
PUSH dword ptr [ESP + 0x10]
PUSH 0x1
PUSH EAX
CALL 0x0002f0f0
ADD ESP,0x10
CMP ESI,EBP
JNZ 0x000e1618
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EBP,EBP
LEA EDI,[EBX + 0xd994]
TEST ESI,ESI
JLE 0x000e1633
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [EDI]
ADD EBP,0x1
PUSH 0x8
CALL 0x0002fb20
ADD ESP,0x10
CMP ESI,EBP
JNZ 0x000e1650
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 _rl_backspace(int param_1)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 _rl_backspace(int param_1)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}" type_identifier (function_declarator "_rl_backspace(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" if (parenthesized_expression "(_rl_term_backspace == 0)" ( (binary_expression "_rl_term_backspace == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }" { (do_statement "do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);" do (compound_statement "{\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "putc(8,_rl_out_stream);" (call_expression "putc(8,_rl_out_stream)" identifier (argument_list "(8,_rl_out_stream)" ( number_literal , identifier ))) ;) }) while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" else (if_statement "if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "tputs(_rl_term_backspace,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_backspace,1,_rl_output_character_function)" identifier (argument_list "(_rl_term_backspace,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) }) while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) ;) })))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint _rl_backspace(int count)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == (char *)0x0) {\n    iVar1 = 0;\n    if (0 < count) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < count) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }\n  return 0;\n}\n\n" comment comment (function_definition "int _rl_backspace(int count)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == (char *)0x0) {\n    iVar1 = 0;\n    if (0 < count) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < count) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }\n  return 0;\n}" primitive_type (function_declarator "_rl_backspace(int count)" identifier (parameter_list "(int count)" ( (parameter_declaration "int count" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (_rl_term_backspace == (char *)0x0) {\n    iVar1 = 0;\n    if (0 < count) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < count) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (_rl_term_backspace == (char *)0x0) {\n    iVar1 = 0;\n    if (0 < count) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < count) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }" if (parenthesized_expression "(_rl_term_backspace == (char *)0x0)" ( (binary_expression "_rl_term_backspace == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 0;\n    if (0 < count) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < count) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }" if (parenthesized_expression "(0 < count)" ( (binary_expression "0 < count" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);\n      return 0;\n    }" { (do_statement "do {\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      } while (count != iVar1);" do (compound_statement "{\n        iVar1 = iVar1 + 1;\n        putc(8,(FILE *)_rl_out_stream);\n      }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "putc(8,(FILE *)_rl_out_stream);" (call_expression "putc(8,(FILE *)_rl_out_stream)" identifier (argument_list "(8,(FILE *)_rl_out_stream)" ( number_literal , (cast_expression "(FILE *)_rl_out_stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }) while (parenthesized_expression "(count != iVar1)" ( (binary_expression "count != iVar1" identifier != identifier) )) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (0 < count) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }" else (if_statement "if (0 < count) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }" if (parenthesized_expression "(0 < count)" ( (binary_expression "0 < count" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (count != iVar1);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "tputs(_rl_term_backspace,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_backspace,1,_rl_output_character_function)" identifier (argument_list "(_rl_term_backspace,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) }) while (parenthesized_expression "(count != iVar1)" ( (binary_expression "count != iVar1" identifier != identifier) )) ;) })))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 _rl_backspace(int param_1)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 _rl_backspace(int param_1)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}" type_identifier (function_declarator "_rl_backspace(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" if (parenthesized_expression "(_rl_term_backspace == 0)" ( (binary_expression "_rl_term_backspace == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }" { (do_statement "do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);" do (compound_statement "{\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "putc(8,_rl_out_stream);" (call_expression "putc(8,_rl_out_stream)" identifier (argument_list "(8,_rl_out_stream)" ( number_literal , identifier ))) ;) }) while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" else (if_statement "if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" if (parenthesized_expression "(0 < param_1)" ( (binary_expression "0 < param_1" number_literal < identifier) )) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);" do (compound_statement "{\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    }" { (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "tputs(_rl_term_backspace,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_backspace,1,_rl_output_character_function)" identifier (argument_list "(_rl_term_backspace,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) }) while (parenthesized_expression "(param_1 != iVar1)" ( (binary_expression "param_1 != iVar1" identifier != identifier) )) ;) })))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (return_statement return LIT ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })))) (return_statement return LIT ;) })))
(function_definition "undefined4 _rl_backspace(int param_1)\n\n{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "_rl_backspace(int param_1)" (identifier "_rl_backspace") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (_rl_term_backspace == 0) {\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }\n  else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" (if "if") (parenthesized_expression "(_rl_term_backspace == 0)" (( "(") (binary_expression "_rl_term_backspace == 0" (identifier "_rl_term_backspace") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = 0;\n    if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < param_1) {\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }" (if "if") (parenthesized_expression "(0 < param_1)" (( "(") (binary_expression "0 < param_1" (number_literal "0") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);\n      return 0;\n    }" ({ "{") (do_statement "do {\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      } while (param_1 != iVar1);" (do "do") (compound_statement "{\n        iVar1 = iVar1 + 1;\n        putc(8,_rl_out_stream);\n      }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "putc(8,_rl_out_stream);" (call_expression "putc(8,_rl_out_stream)" (identifier "putc") (argument_list "(8,_rl_out_stream)" (( "(") (number_literal "8") (, ",") (identifier "_rl_out_stream") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != iVar1)" (( "(") (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" (else "else") (if_statement "if (0 < param_1) {\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" (if "if") (parenthesized_expression "(0 < param_1)" (( "(") (binary_expression "0 < param_1" (number_literal "0") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    iVar1 = 0;\n    do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    } while (param_1 != iVar1);" (do "do") (compound_statement "{\n      iVar1 = iVar1 + 1;\n      tputs(_rl_term_backspace,1,_rl_output_character_function);\n    }" ({ "{") (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "tputs(_rl_term_backspace,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_backspace,1,_rl_output_character_function)" (identifier "tputs") (argument_list "(_rl_term_backspace,1,_rl_output_character_function)" (( "(") (identifier "_rl_term_backspace") (, ",") (number_literal "1") (, ",") (identifier "_rl_output_character_function") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != iVar1)" (( "(") (binary_expression "param_1 != iVar1" (identifier "param_1") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (} "}"))))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int function_1(int var_2)

{
  int var_3;
  
  if (var_1 == (char *)0x0) {
    var_3 = 0;
    if (0 < var_2) {
      do {
        var_3 = var_3 + 1;
        var_4(8,(type_1 *)_rl_out_stream);
      } while (var_2 != var_3);
      return 0;
    }
  }
  else if (0 < var_2) {
    var_3 = 0;
    do {
      var_3 = var_3 + 1;
      var_5(var_1,1,_rl_output_character_function);
    } while (var_2 != var_3);
  }
  return 0;
}


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

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

undefined4 MASKED(int param_1)

{
  int iVar1;
  
  if (_rl_term_backspace == 0) {
    iVar1 = 0;
    if (0 < param_1) {
      do {
        iVar1 = iVar1 + 1;
        putc(8,_rl_out_stream);
      } while (param_1 != iVar1);
      return 0;
    }
  }
  else if (0 < param_1) {
    iVar1 = 0;
    do {
      iVar1 = iVar1 + 1;
      tputs(_rl_term_backspace,1,_rl_output_character_function);
    } while (param_1 != iVar1);
  }
  return 0;
}

