
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int _rl_current_display_line(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = _rl_last_c_pos - _rl_screenwidth;
  if (rl_display_prompt == rl_prompt) {
    iVar2 = iVar2 - rl_visible_prompt_length;
  }
  iVar1 = 0;
  if (0 < iVar2) {
    iVar1 = iVar2 / _rl_screenwidth + 1;
  }
  return iVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int _rl_current_display_line(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = _rl_last_c_pos - _rl_screenwidth;
  if (rl_display_prompt == rl_prompt) {
    iVar2 = iVar2 - rl_visible_prompt_length;
  }
  iVar1 = 0;
  if (0 < iVar2) {
    iVar1 = iVar2 / _rl_screenwidth + 1;
  }
  return iVar1;
}


CALL 0x00032ddd
ADD EAX,0x6dbab
PUSH EBX
LEA EDX,[EAX + 0xdaa4]
LEA EBX,[EAX + 0x7b30]
MOV ECX,dword ptr [EDX]
MOV EDX,dword ptr [EAX + 0x7ec8]
MOV EBX,dword ptr [EBX]
SUB EDX,ECX
CMP dword ptr [EAX + 0x7ed4],EBX
JZ 0x000dc490
XOR EAX,EAX
TEST EDX,EDX
JLE 0x000dc489
MOV EAX,EDX
CDQ
IDIV ECX
ADD EAX,0x1
POP EBX
RET
LEA EAX,[EAX + 0x7b2c]
SUB EDX,dword ptr [EAX]
JMP 0x000dc47b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nint _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_current_display_line(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = _rl_last_c_pos - _rl_screenwidth;" (assignment_expression "iVar2 = _rl_last_c_pos - _rl_screenwidth" identifier = (binary_expression "_rl_last_c_pos - _rl_screenwidth" identifier - identifier)) ;) (if_statement "if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" if (parenthesized_expression "(rl_display_prompt == rl_prompt)" ( (binary_expression "rl_display_prompt == rl_prompt" identifier == identifier) )) (compound_statement "{\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" { (expression_statement "iVar2 = iVar2 - rl_visible_prompt_length;" (assignment_expression "iVar2 = iVar2 - rl_visible_prompt_length" identifier = (binary_expression "iVar2 - rl_visible_prompt_length" identifier - identifier)) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" { (expression_statement "iVar1 = iVar2 / _rl_screenwidth + 1;" (assignment_expression "iVar1 = iVar2 / _rl_screenwidth + 1" identifier = (binary_expression "iVar2 / _rl_screenwidth + 1" (binary_expression "iVar2 / _rl_screenwidth" identifier / identifier) + number_literal)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nint _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_current_display_line(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = _rl_last_c_pos - _rl_screenwidth;" (assignment_expression "iVar2 = _rl_last_c_pos - _rl_screenwidth" identifier = (binary_expression "_rl_last_c_pos - _rl_screenwidth" identifier - identifier)) ;) (if_statement "if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" if (parenthesized_expression "(rl_display_prompt == rl_prompt)" ( (binary_expression "rl_display_prompt == rl_prompt" identifier == identifier) )) (compound_statement "{\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" { (expression_statement "iVar2 = iVar2 - rl_visible_prompt_length;" (assignment_expression "iVar2 = iVar2 - rl_visible_prompt_length" identifier = (binary_expression "iVar2 - rl_visible_prompt_length" identifier - identifier)) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" { (expression_statement "iVar1 = iVar2 / _rl_screenwidth + 1;" (assignment_expression "iVar1 = iVar2 / _rl_screenwidth + 1" identifier = (binary_expression "iVar2 / _rl_screenwidth + 1" (binary_expression "iVar2 / _rl_screenwidth" identifier / identifier) + number_literal)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "_rl_current_display_line(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = _rl_last_c_pos - _rl_screenwidth;" (assignment_expression "iVar2 = _rl_last_c_pos - _rl_screenwidth" identifier = (binary_expression "_rl_last_c_pos - _rl_screenwidth" identifier - identifier)) ;) (if_statement "if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" if (parenthesized_expression "(rl_display_prompt == rl_prompt)" ( (binary_expression "rl_display_prompt == rl_prompt" identifier == identifier) )) (compound_statement "{\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" { (expression_statement "iVar2 = iVar2 - rl_visible_prompt_length;" (assignment_expression "iVar2 = iVar2 - rl_visible_prompt_length" identifier = (binary_expression "iVar2 - rl_visible_prompt_length" identifier - identifier)) ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" { (expression_statement "iVar1 = iVar2 / _rl_screenwidth + 1;" (assignment_expression "iVar1 = iVar2 / _rl_screenwidth + 1" identifier = (binary_expression "iVar2 / _rl_screenwidth + 1" (binary_expression "iVar2 / _rl_screenwidth" identifier / identifier) + number_literal)) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT / IDENT) + LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int _rl_current_display_line(void)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "_rl_current_display_line(void)" (identifier "_rl_current_display_line") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = _rl_last_c_pos - _rl_screenwidth;\n  if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }\n  iVar1 = 0;\n  if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = _rl_last_c_pos - _rl_screenwidth;" (assignment_expression "iVar2 = _rl_last_c_pos - _rl_screenwidth" (identifier "iVar2") (= "=") (binary_expression "_rl_last_c_pos - _rl_screenwidth" (identifier "_rl_last_c_pos") (- "-") (identifier "_rl_screenwidth"))) (; ";")) (if_statement "if (rl_display_prompt == rl_prompt) {\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" (if "if") (parenthesized_expression "(rl_display_prompt == rl_prompt)" (( "(") (binary_expression "rl_display_prompt == rl_prompt" (identifier "rl_display_prompt") (== "==") (identifier "rl_prompt")) () ")")) (compound_statement "{\n    iVar2 = iVar2 - rl_visible_prompt_length;\n  }" ({ "{") (expression_statement "iVar2 = iVar2 - rl_visible_prompt_length;" (assignment_expression "iVar2 = iVar2 - rl_visible_prompt_length" (identifier "iVar2") (= "=") (binary_expression "iVar2 - rl_visible_prompt_length" (identifier "iVar2") (- "-") (identifier "rl_visible_prompt_length"))) (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar2) {\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" (if "if") (parenthesized_expression "(0 < iVar2)" (( "(") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar1 = iVar2 / _rl_screenwidth + 1;\n  }" ({ "{") (expression_statement "iVar1 = iVar2 / _rl_screenwidth + 1;" (assignment_expression "iVar1 = iVar2 / _rl_screenwidth + 1" (identifier "iVar1") (= "=") (binary_expression "iVar2 / _rl_screenwidth + 1" (binary_expression "iVar2 / _rl_screenwidth" (identifier "iVar2") (/ "/") (identifier "_rl_screenwidth")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

int function_1(void)

{
  int iVar1;
  int var_5;
  
  var_5 = var_1 - var_2;
  if (var_3 == var_4) {
    var_5 = var_5 - var_6;
  }
  iVar1 = 0;
  if (0 < var_5) {
    iVar1 = var_5 / var_2 + 1;
  }
  return iVar1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

int MASKED(void)

{
  int iVar1;
  int iVar2;
  
  iVar2 = _rl_last_c_pos - _rl_screenwidth;
  if (rl_display_prompt == rl_prompt) {
    iVar2 = iVar2 - rl_visible_prompt_length;
  }
  iVar1 = 0;
  if (0 < iVar2) {
    iVar1 = iVar2 / _rl_screenwidth + 1;
  }
  return iVar1;
}

