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

void _rl_move_cursor_relative(int new,char *data)

{
  char cVar1;
  bool bVar2;
  int iVar3;
  size_t sVar4;
  int iVar5;
  int iVar6;
  char *pcVar7;
  int local_34;
  int local_2c;
  int local_24;
  
  sVar4 = __ctype_get_mb_cur_max();
  iVar6 = local_prompt_len;
  iVar3 = _rl_last_c_pos;
  if (_rl_last_v_pos == 0) {
    local_2c = wrap_offset;
    if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {
      local_2c = prompt_invis_chars_first_line;
    }
  }
  else {
    local_2c = 0;
    if (_rl_last_v_pos == prompt_last_screen_line) {
      local_2c = wrap_offset - prompt_invis_chars_first_line;
    }
  }
  local_34 = _rl_last_c_pos;
  if ((_rl_last_c_pos == 0) && (new == 0)) {
    return;
  }
  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {
    iVar6 = new;
    if (_rl_last_c_pos == new) {
      return;
    }
  }
  else {
    if (local_prompt_len == new) {
      iVar6 = memcmp(data,local_prompt,new);
      if (iVar6 != 0) goto LAB_000d77ac;
      cpos_adjusted = 1;
      bVar2 = false;
      iVar6 = prompt_physical_chars;
    }
    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&
            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {
      iVar6 = _rl_col_width(data,iVar6,new,1);
      cpos_adjusted = 1;
      bVar2 = false;
      iVar6 = iVar6 + prompt_physical_chars;
    }
    else {
LAB_000d77ac:
      iVar6 = _rl_col_width(data,0,new,1);
      bVar2 = true;
    }
    pcVar7 = line_state_invisible->line;
    if (displaying_prompt_first_line == 0) {
      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {
        bVar2 = false;
        goto LAB_000d7a8b;
      }
    }
    else {
      local_24 = 0;
      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {
LAB_000d7a8b:
        local_24 = (int)data - (int)pcVar7;
      }
      if (bVar2) {
        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {
LAB_000d7860:
          cpos_adjusted = 1;
          iVar6 = iVar6 - local_2c;
        }
        else if ((_rl_screenwidth <= prompt_physical_chars) &&
                (_rl_last_v_pos == prompt_last_screen_line)) {
          iVar5 = wrap_offset;
          if (iVar6 < wrap_offset) {
            iVar5 = iVar6;
          }
          if ((local_2c <= iVar5) &&
             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <
              new)) goto LAB_000d7860;
        }
      }
    }
    if (iVar3 == iVar6) {
      return;
    }
    iVar3 = _rl_last_c_pos;
    if (rl_byte_oriented == 0) goto joined_r0x000d7986;
  }
  iVar3 = _rl_last_c_pos - local_2c;
joined_r0x000d7986:
  if (((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||
     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))) {
    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
    _rl_last_c_pos = 0;
    local_34 = 0;
  }
  if (local_34 < iVar6) {
    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {
      if (local_34 < new) {
        pcVar7 = data + local_34;
        do {
          cVar1 = *pcVar7;
          pcVar7 = pcVar7 + 1;
          putc((int)cVar1,(FILE *)rl_outstream);
        } while (pcVar7 != data + new);
      }
    }
    else if (_rl_term_forward_char == (char *)0x0) {
      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
      if (0 < new) {
        pcVar7 = data + new;
        do {
          cVar1 = *data;
          data = data + 1;
          putc((int)cVar1,(FILE *)rl_outstream);
        } while (pcVar7 != data);
      }
    }
    else {
      do {
        local_34 = local_34 + 1;
        tputs(_rl_term_forward_char,1,_rl_output_character_function);
      } while (local_34 != iVar6);
    }
  }
  else if (iVar6 < local_34) {
    _rl_backspace(local_34 - iVar6);
  }
  _rl_last_c_pos = iVar6;
  return;
}



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

void _rl_move_cursor_relative(size_t param_1,char *param_2)

{
  char cVar1;
  bool bVar2;
  size_t sVar3;
  size_t sVar4;
  int iVar5;
  size_t sVar6;
  char *pcVar7;
  size_t sVar8;
  size_t local_34;
  size_t local_2c;
  int local_24;
  
  sVar4 = __ctype_get_mb_cur_max();
  sVar3 = _rl_last_c_pos;
  if (_rl_last_v_pos == 0) {
    local_2c = DAT_00151f20;
    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {
      local_2c = DAT_00151f14;
    }
  }
  else {
    local_2c = 0;
    if (_rl_last_v_pos == DAT_00151f10) {
      local_2c = DAT_00151f20 - DAT_00151f14;
    }
  }
  local_34 = _rl_last_c_pos;
  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {
    return;
  }
  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {
    sVar6 = param_1;
    if (_rl_last_c_pos == param_1) {
      return;
    }
  }
  else {
    if (DAT_00151f30 == param_1) {
      iVar5 = memcmp(param_2,DAT_00151f38,param_1);
      if (iVar5 != 0) goto LAB_000d77ac;
      DAT_00151f5c = 1;
      bVar2 = false;
      sVar6 = DAT_00151f0c;
    }
    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&
            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {
      iVar5 = FUN_000d6990(1);
      DAT_00151f5c = 1;
      bVar2 = false;
      sVar6 = iVar5 + DAT_00151f0c;
    }
    else {
LAB_000d77ac:
      sVar6 = FUN_000d6990(1);
      bVar2 = true;
    }
    pcVar7 = *(char **)PTR_DAT_0014e6b0;
    if (DAT_00151f54 == 0) {
      if ((pcVar7 < param_2) &&
         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {
        bVar2 = false;
        goto LAB_000d7a8b;
      }
    }
    else {
      local_24 = 0;
      if ((pcVar7 < param_2) &&
         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {
LAB_000d7a8b:
        local_24 = (int)param_2 - (int)pcVar7;
      }
      if (bVar2) {
        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {
LAB_000d7860:
          DAT_00151f5c = 1;
          sVar6 = sVar6 - local_2c;
        }
        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {
          sVar8 = DAT_00151f20;
          if ((int)sVar6 < (int)DAT_00151f20) {
            sVar8 = sVar6;
          }
          if (((int)local_2c <= (int)sVar8) &&
             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -
                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;
        }
      }
    }
    if (sVar3 == sVar6) {
      return;
    }
    sVar3 = _rl_last_c_pos;
    if (rl_byte_oriented == 0) goto joined_r0x000d7986;
  }
  sVar3 = _rl_last_c_pos - local_2c;
joined_r0x000d7986:
  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||
     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {
    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
    _rl_last_c_pos = 0;
    local_34 = 0;
  }
  if ((int)local_34 < (int)sVar6) {
    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {
      if ((int)local_34 < (int)param_1) {
        pcVar7 = param_2 + local_34;
        do {
          cVar1 = *pcVar7;
          pcVar7 = pcVar7 + 1;
          putc((int)cVar1,rl_outstream);
        } while (pcVar7 != param_2 + param_1);
      }
    }
    else if (_rl_term_forward_char == 0) {
      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
      if (0 < (int)param_1) {
        pcVar7 = param_2 + param_1;
        do {
          cVar1 = *param_2;
          param_2 = param_2 + 1;
          putc((int)cVar1,rl_outstream);
        } while (pcVar7 != param_2);
      }
    }
    else {
      do {
        local_34 = local_34 + 1;
        tputs(_rl_term_forward_char,1,_rl_output_character_function);
      } while (local_34 != sVar6);
    }
  }
  else if ((int)sVar6 < (int)local_34) {
    _rl_backspace(local_34 - sVar6);
  }
  _rl_last_c_pos = sVar6;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x72907
SUB ESP,0x2c
CALL 0x0002f520
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x7ec4]
TEST EAX,EAX
JNZ 0x000d7940
MOV EAX,dword ptr [EBX + 0x7f20]
MOV dword ptr [ESP + 0x10],EAX
TEST EAX,EAX
JNZ 0x000d79c0
MOV EDI,dword ptr [EBX + 0x7ec8]
MOV dword ptr [ESP + 0x8],EDI
TEST EDI,EDI
JNZ 0x000d7750
CMP EDI,dword ptr [ESP + 0x40]
JNZ 0x000d7750
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [ESP + 0xc],0x1
JLE 0x000d7970
LEA EAX,[EBX + 0x8b30]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP + 0x18],EAX
TEST EAX,EAX
JNZ 0x000d7970
MOV ESI,dword ptr [EBX + 0x7f30]
CMP ESI,dword ptr [ESP + 0x40]
JZ 0x000d7aa0
JGE 0x000d77ac
MOV EAX,dword ptr [EBX + 0x7f38]
TEST EAX,EAX
JZ 0x000d77ac
SUB ESP,0x4
PUSH ESI
PUSH EAX
PUSH dword ptr [ESP + 0x50]
CALL 0x0002f2e0
ADD ESP,0x10
MOV dword ptr [ESP + 0x1c],EAX
TEST EAX,EAX
JZ 0x000d7b00
SUB ESP,0xc
XOR EDX,EDX
PUSH 0x1
MOV ECX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESP + 0x54]
CALL 0x000d6990
ADD ESP,0x10
MOV dword ptr [ESP + 0x1c],0x1
MOV ESI,EAX
MOV EDX,dword ptr [EBX + 0x46b0]
MOV ECX,dword ptr [EBX + 0x7f54]
MOV EAX,dword ptr [EDX]
TEST ECX,ECX
JZ 0x000d7a60
CMP dword ptr [ESP + 0x44],EAX
JA 0x000d7ae0
MOV EAX,dword ptr [ESP + 0x1c]
TEST EAX,EAX
JZ 0x000d786e
MOV EAX,dword ptr [EBX + 0x7f1c]
CMP EAX,dword ptr [ESP + 0x40]
JL 0x000d7860
MOV EDX,dword ptr [ESP + 0x18]
ADD EDX,dword ptr [ESP + 0x40]
CMP EAX,EDX
JL 0x000d7860
LEA EDX,[EBX + 0xdaa4]
MOV ECX,dword ptr [EDX]
CMP dword ptr [EBX + 0x7f0c],ECX
JL 0x000d786e
MOV EDX,dword ptr [EBX + 0x7ec4]
CMP EDX,dword ptr [EBX + 0x7f10]
JNZ 0x000d786e
MOV ECX,dword ptr [EBX + 0x7f20]
CMP ECX,ESI
MOV dword ptr [ESP + 0x18],ECX
CMOVG ECX,ESI
CMP dword ptr [ESP + 0x10],ECX
JG 0x000d786e
MOV ECX,dword ptr [EBX + 0x46b4]
MOV ECX,dword ptr [ECX + 0x4]
SUB EAX,dword ptr [ECX + EDX*0x4]
SUB EAX,dword ptr [ESP + 0x18]
CMP EAX,dword ptr [ESP + 0x40]
JGE 0x000d786e
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV dword ptr [EBX + 0x7f5c],0x1
SUB ESI,dword ptr [ESP + 0x10]
CMP EDI,ESI
JZ 0x000d773f
MOV EAX,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [EBX + 0x7ec8]
MOV EBP,dword ptr [EAX]
MOV EDX,EDI
TEST EBP,EBP
JNZ 0x000d797e
TEST ESI,ESI
JNZ 0x000d798c
LEA ESI,[ESI]
LEA EAX,[EBX + 0xda90]
SUB ESP,0x4
PUSH dword ptr [EBX + 0xfffffea0]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x0002f0f0
ADD ESP,0x10
MOV dword ptr [EBX + 0x7ec8],0x0
MOV dword ptr [ESP + 0x8],0x0
CMP dword ptr [ESP + 0x8],ESI
JGE 0x000d79e8
CMP dword ptr [ESP + 0xc],0x1
JLE 0x000d7a08
LEA EAX,[EBX + 0x8b30]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JNZ 0x000d7a08
LEA EDI,[EBX + 0xda6c]
MOV EAX,dword ptr [EDI]
TEST EAX,EAX
JZ 0x000d7b2e
LEA ECX,[EBX + 0xfff96a10]
MOV EBP,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0xc],ECX
JMP 0x000d7912
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 EBP,ESI
JNZ 0x000d7910
LEA ESI,[ESI]
NOP
MOV dword ptr [EBX + 0x7ec8],ESI
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x10],0x0
CMP EAX,dword ptr [EBX + 0x7f10]
JNZ 0x000d772b
MOV EBP,dword ptr [EBX + 0x7f20]
SUB EBP,dword ptr [EBX + 0x7f14]
MOV dword ptr [ESP + 0x10],EBP
JMP 0x000d772b
CMP EDI,dword ptr [ESP + 0x40]
JZ 0x000d773f
MOV ESI,dword ptr [ESP + 0x40]
MOV EDX,EDI
SUB EDX,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000d7898
LEA EAX,[ESI + 0x1]
SUB EDI,ESI
CMP EAX,EDI
JL 0x000d7898
LEA EAX,[EBX + 0x46d4]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JZ 0x000d78c5
LEA EAX,[EBX + 0xdaa4]
CMP dword ptr [EAX],EDX
JNZ 0x000d78c5
JMP 0x000d7898
LEA EAX,[EBX + 0xdaa4]
MOV EAX,dword ptr [EAX]
CMP dword ptr [EBX + 0x7f0c],EAX
JLE 0x000d772b
MOV EAX,dword ptr [EBX + 0x7f14]
MOV dword ptr [ESP + 0x10],EAX
JMP 0x000d772b
JLE 0x000d7930
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x14]
SUB EAX,ESI
PUSH EAX
CALL 0x000e15e0
ADD ESP,0x10
JMP 0x000d7930
MOV EAX,dword ptr [ESP + 0x8]
CMP EAX,dword ptr [ESP + 0x40]
JGE 0x000d7930
MOV EDI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [ESP + 0x44]
MOV dword ptr [ESP + 0x8],ESI
ADD EDI,dword ptr [ESP + 0x44]
ADD EAX,dword ptr [ESP + 0x40]
LEA EBP,[EBX + 0x7b38]
MOV ESI,EDI
MOV EDI,EAX
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [EBP]
MOVSX EAX,byte ptr [ESI]
ADD ESI,0x1
PUSH EAX
CALL 0x0002fb20
ADD ESP,0x10
CMP ESI,EDI
JNZ 0x000d7a38
MOV ESI,dword ptr [ESP + 0x8]
MOV dword ptr [EBX + 0x7ec8],ESI
JMP 0x000d7936
CMP dword ptr [ESP + 0x44],EAX
JBE 0x000d786e
MOV EDX,dword ptr [EDX + 0x4]
MOV ECX,dword ptr [EBX + 0x7f4c]
MOV EBP,dword ptr [EDX + ECX*0x4 + 0x4]
ADD EBP,EAX
CMP dword ptr [ESP + 0x44],EBP
JNC 0x000d786e
MOV dword ptr [ESP + 0x1c],0x0
MOV ECX,dword ptr [ESP + 0x44]
SUB ECX,EAX
MOV dword ptr [ESP + 0x18],ECX
JMP 0x000d77ed
SUB ESP,0x4
PUSH dword ptr [ESP + 0x44]
PUSH dword ptr [EBX + 0x7f38]
PUSH dword ptr [ESP + 0x50]
CALL 0x0002f2e0
ADD ESP,0x10
MOV dword ptr [ESP + 0x1c],EAX
TEST EAX,EAX
JNZ 0x000d77ac
MOV dword ptr [EBX + 0x7f5c],0x1
MOV ESI,dword ptr [EBX + 0x7f0c]
JMP 0x000d77cd
MOV EDX,dword ptr [EDX + 0x4]
MOV ECX,dword ptr [EBX + 0x7f4c]
MOV EBP,dword ptr [EDX + ECX*0x4 + 0x4]
ADD EBP,EAX
CMP dword ptr [ESP + 0x44],EBP
JC 0x000d7a8b
JMP 0x000d77ed
SUB ESP,0xc
MOV EDX,ESI
PUSH 0x1
MOV ECX,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [ESP + 0x54]
CALL 0x000d6990
ADD EAX,dword ptr [EBX + 0x7f0c]
ADD ESP,0x10
MOV dword ptr [EBX + 0x7f5c],0x1
MOV ESI,EAX
JMP 0x000d77cd
LEA EAX,[EBX + 0xda90]
SUB ESP,0x4
PUSH dword ptr [EBX + 0xfffffea0]
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x0002f0f0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x40]
TEST EAX,EAX
JLE 0x000d7930
MOV EDI,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x8],ESI
LEA EBP,[EBX + 0x7b38]
ADD EAX,EDI
MOV ESI,EDI
MOV EDI,EAX
LEA ESI,[ESI]
SUB ESP,0x8
PUSH dword ptr [EBP]
MOVSX EAX,byte ptr [ESI]
ADD ESI,0x1
PUSH EAX
CALL 0x0002fb20
ADD ESP,0x10
CMP EDI,ESI
JNZ 0x000d7b70
JMP 0x000d7a51
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid _rl_move_cursor_relative(size_t param_1,char *param_2)\n\n{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}\n\n" comment (function_definition "void _rl_move_cursor_relative(size_t param_1,char *param_2)\n\n{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}" primitive_type (function_declarator "_rl_move_cursor_relative(size_t param_1,char *param_2)" identifier (parameter_list "(size_t param_1,char *param_2)" ( (parameter_declaration "size_t param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "size_t local_34;" primitive_type identifier ;) (declaration "size_t local_2c;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (expression_statement "sVar3 = _rl_last_c_pos;" (assignment_expression "sVar3 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" if (parenthesized_expression "(_rl_last_v_pos == 0)" ( (binary_expression "_rl_last_v_pos == 0" identifier == number_literal) )) (compound_statement "{\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }" { (expression_statement "local_2c = DAT_00151f20;" (assignment_expression "local_2c = DAT_00151f20" identifier = identifier) ;) (if_statement "if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }" if (parenthesized_expression "((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c))" ( (binary_expression "(DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)" (parenthesized_expression "(DAT_00151f20 != 0)" ( (binary_expression "DAT_00151f20 != 0" identifier != number_literal) )) && (parenthesized_expression "((int)_rl_screenwidth < (int)DAT_00151f0c)" ( (binary_expression "(int)_rl_screenwidth < (int)DAT_00151f0c" (cast_expression "(int)_rl_screenwidth" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)DAT_00151f0c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n      local_2c = DAT_00151f14;\n    }" { (expression_statement "local_2c = DAT_00151f14;" (assignment_expression "local_2c = DAT_00151f14" identifier = identifier) ;) })) }) (else_clause "else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" else (compound_statement "{\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }" if (parenthesized_expression "(_rl_last_v_pos == DAT_00151f10)" ( (binary_expression "_rl_last_v_pos == DAT_00151f10" identifier == identifier) )) (compound_statement "{\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }" { (expression_statement "local_2c = DAT_00151f20 - DAT_00151f14;" (assignment_expression "local_2c = DAT_00151f20 - DAT_00151f14" identifier = (binary_expression "DAT_00151f20 - DAT_00151f14" identifier - identifier)) ;) })) }))) (expression_statement "local_34 = _rl_last_c_pos;" (assignment_expression "local_34 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }" if (parenthesized_expression "((_rl_last_c_pos == 0) && (param_1 == 0))" ( (binary_expression "(_rl_last_c_pos == 0) && (param_1 == 0)" (parenthesized_expression "(_rl_last_c_pos == 0)" ( (binary_expression "_rl_last_c_pos == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" if (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" ( (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" ( (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(rl_byte_oriented != 0)" ( (binary_expression "rl_byte_oriented != 0" identifier != number_literal) ))) )) (compound_statement "{\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }" { (expression_statement "sVar6 = param_1;" (assignment_expression "sVar6 = param_1" identifier = identifier) ;) (if_statement "if (_rl_last_c_pos == param_1) {\n      return;\n    }" if (parenthesized_expression "(_rl_last_c_pos == param_1)" ( (binary_expression "_rl_last_c_pos == param_1" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" else (compound_statement "{\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" { (if_statement "if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" if (parenthesized_expression "(DAT_00151f30 == param_1)" ( (binary_expression "DAT_00151f30 == param_1" identifier == identifier) )) (compound_statement "{\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }" { (expression_statement "iVar5 = memcmp(param_2,DAT_00151f38,param_1);" (assignment_expression "iVar5 = memcmp(param_2,DAT_00151f38,param_1)" identifier = (call_expression "memcmp(param_2,DAT_00151f38,param_1)" identifier (argument_list "(param_2,DAT_00151f38,param_1)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 != 0) goto LAB_000d77ac;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000d77ac;" goto statement_identifier ;)) (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "sVar6 = DAT_00151f0c;" (assignment_expression "sVar6 = DAT_00151f0c" identifier = identifier) ;) }) (else_clause "else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" else (if_statement "if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" if (parenthesized_expression "((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0))" ( (binary_expression "(((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)" (parenthesized_expression "(((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0))" ( (binary_expression "((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)" (parenthesized_expression "((int)DAT_00151f30 < (int)param_1)" ( (binary_expression "(int)DAT_00151f30 < (int)param_1" (cast_expression "(int)DAT_00151f30" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(DAT_00151f38 != (void *)0x0)" ( (binary_expression "DAT_00151f38 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)" ( (comma_expression "iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0" (assignment_expression "iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30)" identifier = (call_expression "memcmp(param_2,DAT_00151f38,DAT_00151f30)" identifier (argument_list "(param_2,DAT_00151f38,DAT_00151f30)" ( identifier , identifier , identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }" { (expression_statement "iVar5 = FUN_000d6990(1);" (assignment_expression "iVar5 = FUN_000d6990(1)" identifier = (call_expression "FUN_000d6990(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "sVar6 = iVar5 + DAT_00151f0c;" (assignment_expression "sVar6 = iVar5 + DAT_00151f0c" identifier = (binary_expression "iVar5 + DAT_00151f0c" identifier + identifier)) ;) }) (else_clause "else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" else (compound_statement "{\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" { (labeled_statement "LAB_000d77ac:\n      sVar6 = FUN_000d6990(1);" statement_identifier : (expression_statement "sVar6 = FUN_000d6990(1);" (assignment_expression "sVar6 = FUN_000d6990(1)" identifier = (call_expression "FUN_000d6990(1)" identifier (argument_list "(1)" ( number_literal )))) ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }))))) (expression_statement "pcVar7 = *(char **)PTR_DAT_0014e6b0;" (assignment_expression "pcVar7 = *(char **)PTR_DAT_0014e6b0" identifier = (pointer_expression "*(char **)PTR_DAT_0014e6b0" * (cast_expression "(char **)PTR_DAT_0014e6b0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" if (parenthesized_expression "(DAT_00151f54 == 0)" ( (binary_expression "DAT_00151f54 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }" { (if_statement "if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" if (parenthesized_expression "((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)))" ( (binary_expression "(pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (parenthesized_expression "(pcVar7 < param_2)" ( (binary_expression "pcVar7 < param_2" identifier < identifier) )) && (parenthesized_expression "(param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" ( (binary_expression "param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier < (binary_expression "pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier + (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4" (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b0 + 4)" * (cast_expression "(int *)(PTR_DAT_0014e6b0 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0014e6b0 + 4)" ( (binary_expression "PTR_DAT_0014e6b0 + 4" identifier + number_literal) )))) + number_literal) + (binary_expression "DAT_00151f4c * 4" identifier * number_literal)) )))))) ))) )) (compound_statement "{\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" { (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (goto_statement "goto LAB_000d7a8b;" goto statement_identifier ;) })) }) (else_clause "else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" else (compound_statement "{\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }" if (parenthesized_expression "((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)))" ( (binary_expression "(pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (parenthesized_expression "(pcVar7 < param_2)" ( (binary_expression "pcVar7 < param_2" identifier < identifier) )) && (parenthesized_expression "(param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" ( (binary_expression "param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier < (binary_expression "pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier + (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4" (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b0 + 4)" * (cast_expression "(int *)(PTR_DAT_0014e6b0 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0014e6b0 + 4)" ( (binary_expression "PTR_DAT_0014e6b0 + 4" identifier + number_literal) )))) + number_literal) + (binary_expression "DAT_00151f4c * 4" identifier * number_literal)) )))))) ))) )) (compound_statement "{\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }" { (labeled_statement "LAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;" statement_identifier : (expression_statement "local_24 = (int)param_2 - (int)pcVar7;" (assignment_expression "local_24 = (int)param_2 - (int)pcVar7" identifier = (binary_expression "(int)param_2 - (int)pcVar7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) })) (if_statement "if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }" { (if_statement "if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" if (parenthesized_expression "((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1)))" ( (binary_expression "(DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))" (parenthesized_expression "(DAT_00151f1c < (int)param_1)" ( (binary_expression "DAT_00151f1c < (int)param_1" identifier < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(DAT_00151f1c < (int)(local_24 + param_1))" ( (binary_expression "DAT_00151f1c < (int)(local_24 + param_1)" identifier < (cast_expression "(int)(local_24 + param_1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_24 + param_1)" ( (binary_expression "local_24 + param_1" identifier + identifier) )))) ))) )) (compound_statement "{\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }" { (labeled_statement "LAB_000d7860:\n          DAT_00151f5c = 1;" statement_identifier : (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" identifier = number_literal) ;)) (expression_statement "sVar6 = sVar6 - local_2c;" (assignment_expression "sVar6 = sVar6 - local_2c" identifier = (binary_expression "sVar6 - local_2c" identifier - identifier)) ;) }) (else_clause "else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" else (if_statement "if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" if (parenthesized_expression "(((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10))" ( (binary_expression "((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)" (parenthesized_expression "((int)_rl_screenwidth <= (int)DAT_00151f0c)" ( (binary_expression "(int)_rl_screenwidth <= (int)DAT_00151f0c" (cast_expression "(int)_rl_screenwidth" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)DAT_00151f0c" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(_rl_last_v_pos == DAT_00151f10)" ( (binary_expression "_rl_last_v_pos == DAT_00151f10" identifier == identifier) ))) )) (compound_statement "{\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" { (expression_statement "sVar8 = DAT_00151f20;" (assignment_expression "sVar8 = DAT_00151f20" identifier = identifier) ;) (if_statement "if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }" if (parenthesized_expression "((int)sVar6 < (int)DAT_00151f20)" ( (binary_expression "(int)sVar6 < (int)DAT_00151f20" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)DAT_00151f20" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            sVar8 = sVar6;\n          }" { (expression_statement "sVar8 = sVar6;" (assignment_expression "sVar8 = sVar6" identifier = identifier) ;) })) (if_statement "if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;" if (parenthesized_expression "(((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1))" ( (binary_expression "((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)" (parenthesized_expression "((int)local_2c <= (int)sVar8)" ( (binary_expression "(int)local_2c <= (int)sVar8" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)" ( (binary_expression "(int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1" (cast_expression "(int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20)" ( (binary_expression "(DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20" (parenthesized_expression "(DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4))" ( (binary_expression "DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" identifier - (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" ( (binary_expression "*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b4 + 4)" * (cast_expression "(int *)(PTR_DAT_0014e6b4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0014e6b4 + 4)" ( (binary_expression "PTR_DAT_0014e6b4 + 4" identifier + number_literal) )))) + (binary_expression "_rl_last_v_pos * 4" identifier * number_literal)) ))))) )) - identifier) ))) < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (goto_statement "goto LAB_000d7860;" goto statement_identifier ;)) })))) })) }))) (if_statement "if (sVar3 == sVar6) {\n      return;\n    }" if (parenthesized_expression "(sVar3 == sVar6)" ( (binary_expression "sVar3 == sVar6" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "sVar3 = _rl_last_c_pos;" (assignment_expression "sVar3 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if (rl_byte_oriented == 0) goto joined_r0x000d7986;" if (parenthesized_expression "(rl_byte_oriented == 0)" ( (binary_expression "rl_byte_oriented == 0" identifier == number_literal) )) (goto_statement "goto joined_r0x000d7986;" goto statement_identifier ;)) }))) (expression_statement "sVar3 = _rl_last_c_pos - local_2c;" (assignment_expression "sVar3 = _rl_last_c_pos - local_2c" identifier = (binary_expression "_rl_last_c_pos - local_2c" identifier - identifier)) ;) (labeled_statement "joined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" statement_identifier : (if_statement "if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" if (parenthesized_expression "(((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3))))" ( (binary_expression "((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))" (parenthesized_expression "((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6)))" ( (binary_expression "(sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))" (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))" ( (binary_expression "(int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6)" (cast_expression "(int)(sVar6 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) ))) < (cast_expression "(int)(_rl_last_c_pos - sVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(_rl_last_c_pos - sVar6)" ( (binary_expression "_rl_last_c_pos - sVar6" identifier - identifier) )))) ))) )) || (parenthesized_expression "((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))" ( (parenthesized_expression "(_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3))" ( (binary_expression "_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)" (binary_expression "_rl_term_autowrap != 0" identifier != number_literal) && (parenthesized_expression "(_rl_screenwidth == sVar3)" ( (binary_expression "_rl_screenwidth == sVar3" identifier == identifier) ))) )) ))) )) (compound_statement "{\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" { (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" identifier (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" ( identifier , number_literal , identifier ))) ;) (expression_statement "_rl_last_c_pos = 0;" (assignment_expression "_rl_last_c_pos = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }))) (if_statement "if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" if (parenthesized_expression "((int)local_34 < (int)sVar6)" ( (binary_expression "(int)local_34 < (int)sVar6" (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }" { (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" if (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" ( (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" ( (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(rl_byte_oriented != 0)" ( (binary_expression "rl_byte_oriented != 0" identifier != number_literal) ))) )) (compound_statement "{\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }" { (if_statement "if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }" if (parenthesized_expression "((int)local_34 < (int)param_1)" ( (binary_expression "(int)local_34 < (int)param_1" (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }" { (expression_statement "pcVar7 = param_2 + local_34;" (assignment_expression "pcVar7 = param_2 + local_34" identifier = (binary_expression "param_2 + local_34" identifier + identifier)) ;) (do_statement "do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);" do (compound_statement "{\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        }" { (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar1,rl_outstream);" (call_expression "putc((int)cVar1,rl_outstream)" identifier (argument_list "((int)cVar1,rl_outstream)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) }) while (parenthesized_expression "(pcVar7 != param_2 + param_1)" ( (binary_expression "pcVar7 != param_2 + param_1" identifier != (binary_expression "param_2 + param_1" identifier + identifier)) )) ;) })) }) (else_clause "else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" else (if_statement "if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" if (parenthesized_expression "(_rl_term_forward_char == 0)" ( (binary_expression "_rl_term_forward_char == 0" identifier == number_literal) )) (compound_statement "{\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }" { (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" identifier (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }" if (parenthesized_expression "(0 < (int)param_1)" ( (binary_expression "0 < (int)param_1" number_literal < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }" { (expression_statement "pcVar7 = param_2 + param_1;" (assignment_expression "pcVar7 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (do_statement "do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);" do (compound_statement "{\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        }" { (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar1,rl_outstream);" (call_expression "putc((int)cVar1,rl_outstream)" identifier (argument_list "((int)cVar1,rl_outstream)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) }) while (parenthesized_expression "(pcVar7 != param_2)" ( (binary_expression "pcVar7 != param_2" identifier != identifier) )) ;) })) }) (else_clause "else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" else (compound_statement "{\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" { (do_statement "do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);" do (compound_statement "{\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      }" { (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" identifier = (binary_expression "local_34 + 1" identifier + number_literal)) ;) (expression_statement "tputs(_rl_term_forward_char,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_forward_char,1,_rl_output_character_function)" identifier (argument_list "(_rl_term_forward_char,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) }) while (parenthesized_expression "(local_34 != sVar6)" ( (binary_expression "local_34 != sVar6" identifier != identifier) )) ;) }))))) }) (else_clause "else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" else (if_statement "if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" if (parenthesized_expression "((int)sVar6 < (int)local_34)" ( (binary_expression "(int)sVar6 < (int)local_34" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    _rl_backspace(local_34 - sVar6);\n  }" { (expression_statement "_rl_backspace(local_34 - sVar6);" (call_expression "_rl_backspace(local_34 - sVar6)" identifier (argument_list "(local_34 - sVar6)" ( (binary_expression "local_34 - sVar6" identifier - identifier) ))) ;) })))) (expression_statement "_rl_last_c_pos = sVar6;" (assignment_expression "_rl_last_c_pos = sVar6" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid _rl_move_cursor_relative(int new,char *data)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int local_34;\n  int local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  iVar6 = local_prompt_len;\n  iVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = wrap_offset;\n    if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {\n      local_2c = prompt_invis_chars_first_line;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (new == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    iVar6 = new;\n    if (_rl_last_c_pos == new) {\n      return;\n    }\n  }\n  else {\n    if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }\n    pcVar7 = line_state_invisible->line;\n    if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (iVar3 == iVar6) {\n      return;\n    }\n    iVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  iVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if (local_34 < iVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }\n    else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }\n  }\n  else if (iVar6 < local_34) {\n    _rl_backspace(local_34 - iVar6);\n  }\n  _rl_last_c_pos = iVar6;\n  return;\n}\n\n" comment comment (function_definition "void _rl_move_cursor_relative(int new,char *data)\n\n{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int local_34;\n  int local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  iVar6 = local_prompt_len;\n  iVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = wrap_offset;\n    if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {\n      local_2c = prompt_invis_chars_first_line;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (new == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    iVar6 = new;\n    if (_rl_last_c_pos == new) {\n      return;\n    }\n  }\n  else {\n    if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }\n    pcVar7 = line_state_invisible->line;\n    if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (iVar3 == iVar6) {\n      return;\n    }\n    iVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  iVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if (local_34 < iVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }\n    else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }\n  }\n  else if (iVar6 < local_34) {\n    _rl_backspace(local_34 - iVar6);\n  }\n  _rl_last_c_pos = iVar6;\n  return;\n}" primitive_type (function_declarator "_rl_move_cursor_relative(int new,char *data)" identifier (parameter_list "(int new,char *data)" ( (parameter_declaration "int new" primitive_type identifier) , (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  int iVar3;\n  size_t sVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  int local_34;\n  int local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  iVar6 = local_prompt_len;\n  iVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = wrap_offset;\n    if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {\n      local_2c = prompt_invis_chars_first_line;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (new == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    iVar6 = new;\n    if (_rl_last_c_pos == new) {\n      return;\n    }\n  }\n  else {\n    if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }\n    pcVar7 = line_state_invisible->line;\n    if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (iVar3 == iVar6) {\n      return;\n    }\n    iVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  iVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if (local_34 < iVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }\n    else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }\n  }\n  else if (iVar6 < local_34) {\n    _rl_backspace(local_34 - iVar6);\n  }\n  _rl_last_c_pos = iVar6;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = local_prompt_len;" (assignment_expression "iVar6 = local_prompt_len" identifier = identifier) ;) (expression_statement "iVar3 = _rl_last_c_pos;" (assignment_expression "iVar3 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if (_rl_last_v_pos == 0) {\n    local_2c = wrap_offset;\n    if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {\n      local_2c = prompt_invis_chars_first_line;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }\n  }" if (parenthesized_expression "(_rl_last_v_pos == 0)" ( (binary_expression "_rl_last_v_pos == 0" identifier == number_literal) )) (compound_statement "{\n    local_2c = wrap_offset;\n    if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {\n      local_2c = prompt_invis_chars_first_line;\n    }\n  }" { (expression_statement "local_2c = wrap_offset;" (assignment_expression "local_2c = wrap_offset" identifier = identifier) ;) (if_statement "if ((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)) {\n      local_2c = prompt_invis_chars_first_line;\n    }" if (parenthesized_expression "((wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars))" ( (binary_expression "(wrap_offset != 0) && (_rl_screenwidth < prompt_physical_chars)" (parenthesized_expression "(wrap_offset != 0)" ( (binary_expression "wrap_offset != 0" identifier != number_literal) )) && (parenthesized_expression "(_rl_screenwidth < prompt_physical_chars)" ( (binary_expression "_rl_screenwidth < prompt_physical_chars" identifier < identifier) ))) )) (compound_statement "{\n      local_2c = prompt_invis_chars_first_line;\n    }" { (expression_statement "local_2c = prompt_invis_chars_first_line;" (assignment_expression "local_2c = prompt_invis_chars_first_line" identifier = identifier) ;) })) }) (else_clause "else {\n    local_2c = 0;\n    if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }\n  }" else (compound_statement "{\n    local_2c = 0;\n    if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (_rl_last_v_pos == prompt_last_screen_line) {\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }" if (parenthesized_expression "(_rl_last_v_pos == prompt_last_screen_line)" ( (binary_expression "_rl_last_v_pos == prompt_last_screen_line" identifier == identifier) )) (compound_statement "{\n      local_2c = wrap_offset - prompt_invis_chars_first_line;\n    }" { (expression_statement "local_2c = wrap_offset - prompt_invis_chars_first_line;" (assignment_expression "local_2c = wrap_offset - prompt_invis_chars_first_line" identifier = (binary_expression "wrap_offset - prompt_invis_chars_first_line" identifier - identifier)) ;) })) }))) (expression_statement "local_34 = _rl_last_c_pos;" (assignment_expression "local_34 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if ((_rl_last_c_pos == 0) && (new == 0)) {\n    return;\n  }" if (parenthesized_expression "((_rl_last_c_pos == 0) && (new == 0))" ( (binary_expression "(_rl_last_c_pos == 0) && (new == 0)" (parenthesized_expression "(_rl_last_c_pos == 0)" ( (binary_expression "_rl_last_c_pos == 0" identifier == number_literal) )) && (parenthesized_expression "(new == 0)" ( (binary_expression "new == 0" identifier == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    iVar6 = new;\n    if (_rl_last_c_pos == new) {\n      return;\n    }\n  }\n  else {\n    if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }\n    pcVar7 = line_state_invisible->line;\n    if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (iVar3 == iVar6) {\n      return;\n    }\n    iVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" if (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" ( (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" ( (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(rl_byte_oriented != 0)" ( (binary_expression "rl_byte_oriented != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar6 = new;\n    if (_rl_last_c_pos == new) {\n      return;\n    }\n  }" { (expression_statement "iVar6 = new;" (assignment_expression "iVar6 = new" identifier = identifier) ;) (if_statement "if (_rl_last_c_pos == new) {\n      return;\n    }" if (parenthesized_expression "(_rl_last_c_pos == new)" ( (binary_expression "_rl_last_c_pos == new" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }\n    pcVar7 = line_state_invisible->line;\n    if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (iVar3 == iVar6) {\n      return;\n    }\n    iVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" else (compound_statement "{\n    if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }\n    pcVar7 = line_state_invisible->line;\n    if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (iVar3 == iVar6) {\n      return;\n    }\n    iVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" { (if_statement "if (local_prompt_len == new) {\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }\n    else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }" if (parenthesized_expression "(local_prompt_len == new)" ( (binary_expression "local_prompt_len == new" identifier == identifier) )) (compound_statement "{\n      iVar6 = memcmp(data,local_prompt,new);\n      if (iVar6 != 0) goto LAB_000d77ac;\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = prompt_physical_chars;\n    }" { (expression_statement "iVar6 = memcmp(data,local_prompt,new);" (assignment_expression "iVar6 = memcmp(data,local_prompt,new)" identifier = (call_expression "memcmp(data,local_prompt,new)" identifier (argument_list "(data,local_prompt,new)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar6 != 0) goto LAB_000d77ac;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000d77ac;" goto statement_identifier ;)) (expression_statement "cpos_adjusted = 1;" (assignment_expression "cpos_adjusted = 1" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar6 = prompt_physical_chars;" (assignment_expression "iVar6 = prompt_physical_chars" identifier = identifier) ;) }) (else_clause "else if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }" else (if_statement "if (((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)) {\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }\n    else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }" if (parenthesized_expression "(((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0))" ( (binary_expression "((local_prompt_len < new) && (local_prompt != (char *)0x0)) &&\n            (iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)" (parenthesized_expression "((local_prompt_len < new) && (local_prompt != (char *)0x0))" ( (binary_expression "(local_prompt_len < new) && (local_prompt != (char *)0x0)" (parenthesized_expression "(local_prompt_len < new)" ( (binary_expression "local_prompt_len < new" identifier < identifier) )) && (parenthesized_expression "(local_prompt != (char *)0x0)" ( (binary_expression "local_prompt != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0)" ( (comma_expression "iVar5 = memcmp(data,local_prompt,local_prompt_len), iVar5 == 0" (assignment_expression "iVar5 = memcmp(data,local_prompt,local_prompt_len)" identifier = (call_expression "memcmp(data,local_prompt,local_prompt_len)" identifier (argument_list "(data,local_prompt,local_prompt_len)" ( identifier , identifier , identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar6 = _rl_col_width(data,iVar6,new,1);\n      cpos_adjusted = 1;\n      bVar2 = false;\n      iVar6 = iVar6 + prompt_physical_chars;\n    }" { (expression_statement "iVar6 = _rl_col_width(data,iVar6,new,1);" (assignment_expression "iVar6 = _rl_col_width(data,iVar6,new,1)" identifier = (call_expression "_rl_col_width(data,iVar6,new,1)" identifier (argument_list "(data,iVar6,new,1)" ( identifier , identifier , identifier , number_literal )))) ;) (expression_statement "cpos_adjusted = 1;" (assignment_expression "cpos_adjusted = 1" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar6 = iVar6 + prompt_physical_chars;" (assignment_expression "iVar6 = iVar6 + prompt_physical_chars" identifier = (binary_expression "iVar6 + prompt_physical_chars" identifier + identifier)) ;) }) (else_clause "else {\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }" else (compound_statement "{\nLAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);\n      bVar2 = true;\n    }" { (labeled_statement "LAB_000d77ac:\n      iVar6 = _rl_col_width(data,0,new,1);" statement_identifier : (expression_statement "iVar6 = _rl_col_width(data,0,new,1);" (assignment_expression "iVar6 = _rl_col_width(data,0,new,1)" identifier = (call_expression "_rl_col_width(data,0,new,1)" identifier (argument_list "(data,0,new,1)" ( identifier , number_literal , identifier , number_literal )))) ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }))))) (expression_statement "pcVar7 = line_state_invisible->line;" (assignment_expression "pcVar7 = line_state_invisible->line" identifier = (field_expression "line_state_invisible->line" identifier -> field_identifier)) ;) (if_statement "if (displaying_prompt_first_line == 0) {\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }" if (parenthesized_expression "(displaying_prompt_first_line == 0)" ( (binary_expression "displaying_prompt_first_line == 0" identifier == number_literal) )) (compound_statement "{\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }" { (if_statement "if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" if (parenthesized_expression "((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1]))" ( (binary_expression "(pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])" (parenthesized_expression "(pcVar7 < data)" ( (binary_expression "pcVar7 < data" identifier < identifier) )) && (parenthesized_expression "(data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])" ( (binary_expression "data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1]" identifier < (binary_expression "pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1]" identifier + (subscript_expression "line_state_invisible->lbreaks[_rl_inv_botlin + 1]" (field_expression "line_state_invisible->lbreaks" identifier -> field_identifier) [ (binary_expression "_rl_inv_botlin + 1" identifier + number_literal) ]))) ))) )) (compound_statement "{\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" { (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (goto_statement "goto LAB_000d7a8b;" goto statement_identifier ;) })) }) (else_clause "else {\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }" else (compound_statement "{\n      local_24 = 0;\n      if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if ((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])) {\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }" if (parenthesized_expression "((pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1]))" ( (binary_expression "(pcVar7 < data) && (data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])" (parenthesized_expression "(pcVar7 < data)" ( (binary_expression "pcVar7 < data" identifier < identifier) )) && (parenthesized_expression "(data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1])" ( (binary_expression "data < pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1]" identifier < (binary_expression "pcVar7 + line_state_invisible->lbreaks[_rl_inv_botlin + 1]" identifier + (subscript_expression "line_state_invisible->lbreaks[_rl_inv_botlin + 1]" (field_expression "line_state_invisible->lbreaks" identifier -> field_identifier) [ (binary_expression "_rl_inv_botlin + 1" identifier + number_literal) ]))) ))) )) (compound_statement "{\nLAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;\n      }" { (labeled_statement "LAB_000d7a8b:\n        local_24 = (int)data - (int)pcVar7;" statement_identifier : (expression_statement "local_24 = (int)data - (int)pcVar7;" (assignment_expression "local_24 = (int)data - (int)pcVar7" identifier = (binary_expression "(int)data - (int)pcVar7" (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) })) (if_statement "if (bVar2) {\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }\n      }" { (if_statement "if ((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)) {\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }\n        else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }" if (parenthesized_expression "((prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new))" ( (binary_expression "(prompt_last_invisible < new) || (prompt_last_invisible < local_24 + new)" (parenthesized_expression "(prompt_last_invisible < new)" ( (binary_expression "prompt_last_invisible < new" identifier < identifier) )) || (parenthesized_expression "(prompt_last_invisible < local_24 + new)" ( (binary_expression "prompt_last_invisible < local_24 + new" identifier < (binary_expression "local_24 + new" identifier + identifier)) ))) )) (compound_statement "{\nLAB_000d7860:\n          cpos_adjusted = 1;\n          iVar6 = iVar6 - local_2c;\n        }" { (labeled_statement "LAB_000d7860:\n          cpos_adjusted = 1;" statement_identifier : (expression_statement "cpos_adjusted = 1;" (assignment_expression "cpos_adjusted = 1" identifier = number_literal) ;)) (expression_statement "iVar6 = iVar6 - local_2c;" (assignment_expression "iVar6 = iVar6 - local_2c" identifier = (binary_expression "iVar6 - local_2c" identifier - identifier)) ;) }) (else_clause "else if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }" else (if_statement "if ((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)) {\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }" if (parenthesized_expression "((_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line))" ( (binary_expression "(_rl_screenwidth <= prompt_physical_chars) &&\n                (_rl_last_v_pos == prompt_last_screen_line)" (parenthesized_expression "(_rl_screenwidth <= prompt_physical_chars)" ( (binary_expression "_rl_screenwidth <= prompt_physical_chars" identifier <= identifier) )) && (parenthesized_expression "(_rl_last_v_pos == prompt_last_screen_line)" ( (binary_expression "_rl_last_v_pos == prompt_last_screen_line" identifier == identifier) ))) )) (compound_statement "{\n          iVar5 = wrap_offset;\n          if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }\n          if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;\n        }" { (expression_statement "iVar5 = wrap_offset;" (assignment_expression "iVar5 = wrap_offset" identifier = identifier) ;) (if_statement "if (iVar6 < wrap_offset) {\n            iVar5 = iVar6;\n          }" if (parenthesized_expression "(iVar6 < wrap_offset)" ( (binary_expression "iVar6 < wrap_offset" identifier < identifier) )) (compound_statement "{\n            iVar5 = iVar6;\n          }" { (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) })) (if_statement "if ((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)) goto LAB_000d7860;" if (parenthesized_expression "((local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new))" ( (binary_expression "(local_2c <= iVar5) &&\n             ((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)" (parenthesized_expression "(local_2c <= iVar5)" ( (binary_expression "local_2c <= iVar5" identifier <= identifier) )) && (parenthesized_expression "((prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new)" ( (binary_expression "(prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset <\n              new" (binary_expression "(prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]) - wrap_offset" (parenthesized_expression "(prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos])" ( (binary_expression "prompt_last_invisible - line_state_visible->lbreaks[_rl_last_v_pos]" identifier - (subscript_expression "line_state_visible->lbreaks[_rl_last_v_pos]" (field_expression "line_state_visible->lbreaks" identifier -> field_identifier) [ identifier ])) )) - identifier) < identifier) ))) )) (goto_statement "goto LAB_000d7860;" goto statement_identifier ;)) })))) })) }))) (if_statement "if (iVar3 == iVar6) {\n      return;\n    }" if (parenthesized_expression "(iVar3 == iVar6)" ( (binary_expression "iVar3 == iVar6" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar3 = _rl_last_c_pos;" (assignment_expression "iVar3 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if (rl_byte_oriented == 0) goto joined_r0x000d7986;" if (parenthesized_expression "(rl_byte_oriented == 0)" ( (binary_expression "rl_byte_oriented == 0" identifier == number_literal) )) (goto_statement "goto joined_r0x000d7986;" goto statement_identifier ;)) }))) (expression_statement "iVar3 = _rl_last_c_pos - local_2c;" (assignment_expression "iVar3 = _rl_last_c_pos - local_2c" identifier = (binary_expression "_rl_last_c_pos - local_2c" identifier - identifier)) ;) (labeled_statement "joined_r0x000d7986:\n  if (((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" statement_identifier : (if_statement "if (((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" if (parenthesized_expression "(((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3))))" ( (binary_expression "((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))" (parenthesized_expression "((iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6))" ( (binary_expression "(iVar6 == 0) || (iVar6 + 1 < _rl_last_c_pos - iVar6)" (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar6 + 1 < _rl_last_c_pos - iVar6)" ( (binary_expression "iVar6 + 1 < _rl_last_c_pos - iVar6" (binary_expression "iVar6 + 1" identifier + number_literal) < (binary_expression "_rl_last_c_pos - iVar6" identifier - identifier)) ))) )) || (parenthesized_expression "((_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)))" ( (parenthesized_expression "(_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3))" ( (binary_expression "_rl_term_autowrap != 0 && (_rl_screenwidth == iVar3)" (binary_expression "_rl_term_autowrap != 0" identifier != number_literal) && (parenthesized_expression "(_rl_screenwidth == iVar3)" ( (binary_expression "_rl_screenwidth == iVar3" identifier == identifier) ))) )) ))) )) (compound_statement "{\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" { (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" identifier (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" ( identifier , number_literal , identifier ))) ;) (expression_statement "_rl_last_c_pos = 0;" (assignment_expression "_rl_last_c_pos = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }))) (if_statement "if (local_34 < iVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }\n    else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }\n  }\n  else if (iVar6 < local_34) {\n    _rl_backspace(local_34 - iVar6);\n  }" if (parenthesized_expression "(local_34 < iVar6)" ( (binary_expression "local_34 < iVar6" identifier < identifier) )) (compound_statement "{\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }\n    else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }\n  }" { (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }\n    else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }" if (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" ( (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" ( (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(rl_byte_oriented != 0)" ( (binary_expression "rl_byte_oriented != 0" identifier != number_literal) ))) )) (compound_statement "{\n      if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }\n    }" { (if_statement "if (local_34 < new) {\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }" if (parenthesized_expression "(local_34 < new)" ( (binary_expression "local_34 < new" identifier < identifier) )) (compound_statement "{\n        pcVar7 = data + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);\n      }" { (expression_statement "pcVar7 = data + local_34;" (assignment_expression "pcVar7 = data + local_34" identifier = (binary_expression "data + local_34" identifier + identifier)) ;) (do_statement "do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data + new);" do (compound_statement "{\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        }" { (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar1,(FILE *)rl_outstream);" (call_expression "putc((int)cVar1,(FILE *)rl_outstream)" identifier (argument_list "((int)cVar1,(FILE *)rl_outstream)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(FILE *)rl_outstream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }) while (parenthesized_expression "(pcVar7 != data + new)" ( (binary_expression "pcVar7 != data + new" identifier != (binary_expression "data + new" identifier + identifier)) )) ;) })) }) (else_clause "else if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }" else (if_statement "if (_rl_term_forward_char == (char *)0x0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }" if (parenthesized_expression "(_rl_term_forward_char == (char *)0x0)" ( (binary_expression "_rl_term_forward_char == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }\n    }" { (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" identifier (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (0 < new) {\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }" if (parenthesized_expression "(0 < new)" ( (binary_expression "0 < new" number_literal < identifier) )) (compound_statement "{\n        pcVar7 = data + new;\n        do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);\n      }" { (expression_statement "pcVar7 = data + new;" (assignment_expression "pcVar7 = data + new" identifier = (binary_expression "data + new" identifier + identifier)) ;) (do_statement "do {\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        } while (pcVar7 != data);" do (compound_statement "{\n          cVar1 = *data;\n          data = data + 1;\n          putc((int)cVar1,(FILE *)rl_outstream);\n        }" { (expression_statement "cVar1 = *data;" (assignment_expression "cVar1 = *data" identifier = (pointer_expression "*data" * identifier)) ;) (expression_statement "data = data + 1;" (assignment_expression "data = data + 1" identifier = (binary_expression "data + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar1,(FILE *)rl_outstream);" (call_expression "putc((int)cVar1,(FILE *)rl_outstream)" identifier (argument_list "((int)cVar1,(FILE *)rl_outstream)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(FILE *)rl_outstream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) }) while (parenthesized_expression "(pcVar7 != data)" ( (binary_expression "pcVar7 != data" identifier != identifier) )) ;) })) }) (else_clause "else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }" else (compound_statement "{\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);\n    }" { (do_statement "do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != iVar6);" do (compound_statement "{\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      }" { (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" identifier = (binary_expression "local_34 + 1" identifier + number_literal)) ;) (expression_statement "tputs(_rl_term_forward_char,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_forward_char,1,_rl_output_character_function)" identifier (argument_list "(_rl_term_forward_char,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) }) while (parenthesized_expression "(local_34 != iVar6)" ( (binary_expression "local_34 != iVar6" identifier != identifier) )) ;) }))))) }) (else_clause "else if (iVar6 < local_34) {\n    _rl_backspace(local_34 - iVar6);\n  }" else (if_statement "if (iVar6 < local_34) {\n    _rl_backspace(local_34 - iVar6);\n  }" if (parenthesized_expression "(iVar6 < local_34)" ( (binary_expression "iVar6 < local_34" identifier < identifier) )) (compound_statement "{\n    _rl_backspace(local_34 - iVar6);\n  }" { (expression_statement "_rl_backspace(local_34 - iVar6);" (call_expression "_rl_backspace(local_34 - iVar6)" identifier (argument_list "(local_34 - iVar6)" ( (binary_expression "local_34 - iVar6" identifier - identifier) ))) ;) })))) (expression_statement "_rl_last_c_pos = iVar6;" (assignment_expression "_rl_last_c_pos = iVar6" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void _rl_move_cursor_relative(size_t param_1,char *param_2)\n\n{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}\n\n" (function_definition "void _rl_move_cursor_relative(size_t param_1,char *param_2)\n\n{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}" primitive_type (function_declarator "_rl_move_cursor_relative(size_t param_1,char *param_2)" identifier (parameter_list "(size_t param_1,char *param_2)" ( (parameter_declaration "size_t param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "size_t local_34;" primitive_type identifier ;) (declaration "size_t local_2c;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" identifier = (call_expression "__ctype_get_mb_cur_max()" identifier (argument_list "()" ( )))) ;) (expression_statement "sVar3 = _rl_last_c_pos;" (assignment_expression "sVar3 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" if (parenthesized_expression "(_rl_last_v_pos == 0)" ( (binary_expression "_rl_last_v_pos == 0" identifier == number_literal) )) (compound_statement "{\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }" { (expression_statement "local_2c = DAT_00151f20;" (assignment_expression "local_2c = DAT_00151f20" identifier = identifier) ;) (if_statement "if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }" if (parenthesized_expression "((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c))" ( (binary_expression "(DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)" (parenthesized_expression "(DAT_00151f20 != 0)" ( (binary_expression "DAT_00151f20 != 0" identifier != number_literal) )) && (parenthesized_expression "((int)_rl_screenwidth < (int)DAT_00151f0c)" ( (binary_expression "(int)_rl_screenwidth < (int)DAT_00151f0c" (cast_expression "(int)_rl_screenwidth" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)DAT_00151f0c" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (compound_statement "{\n      local_2c = DAT_00151f14;\n    }" { (expression_statement "local_2c = DAT_00151f14;" (assignment_expression "local_2c = DAT_00151f14" identifier = identifier) ;) })) }) (else_clause "else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" else (compound_statement "{\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (if_statement "if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }" if (parenthesized_expression "(_rl_last_v_pos == DAT_00151f10)" ( (binary_expression "_rl_last_v_pos == DAT_00151f10" identifier == identifier) )) (compound_statement "{\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }" { (expression_statement "local_2c = DAT_00151f20 - DAT_00151f14;" (assignment_expression "local_2c = DAT_00151f20 - DAT_00151f14" identifier = (binary_expression "DAT_00151f20 - DAT_00151f14" identifier - identifier)) ;) })) }))) (expression_statement "local_34 = _rl_last_c_pos;" (assignment_expression "local_34 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }" if (parenthesized_expression "((_rl_last_c_pos == 0) && (param_1 == 0))" ( (binary_expression "(_rl_last_c_pos == 0) && (param_1 == 0)" (parenthesized_expression "(_rl_last_c_pos == 0)" ( (binary_expression "_rl_last_c_pos == 0" identifier == number_literal) )) && (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" if (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" ( (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" ( (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(rl_byte_oriented != 0)" ( (binary_expression "rl_byte_oriented != 0" identifier != number_literal) ))) )) (compound_statement "{\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }" { (expression_statement "sVar6 = param_1;" (assignment_expression "sVar6 = param_1" identifier = identifier) ;) (if_statement "if (_rl_last_c_pos == param_1) {\n      return;\n    }" if (parenthesized_expression "(_rl_last_c_pos == param_1)" ( (binary_expression "_rl_last_c_pos == param_1" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) (else_clause "else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" else (compound_statement "{\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" { (if_statement "if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" if (parenthesized_expression "(DAT_00151f30 == param_1)" ( (binary_expression "DAT_00151f30 == param_1" identifier == identifier) )) (compound_statement "{\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }" { (expression_statement "iVar5 = memcmp(param_2,DAT_00151f38,param_1);" (assignment_expression "iVar5 = memcmp(param_2,DAT_00151f38,param_1)" identifier = (call_expression "memcmp(param_2,DAT_00151f38,param_1)" identifier (argument_list "(param_2,DAT_00151f38,param_1)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar5 != 0) goto LAB_000d77ac;" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000d77ac;" goto statement_identifier ;)) (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "sVar6 = DAT_00151f0c;" (assignment_expression "sVar6 = DAT_00151f0c" identifier = identifier) ;) }) (else_clause "else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" else (if_statement "if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" if (parenthesized_expression "((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0))" ( (binary_expression "(((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)" (parenthesized_expression "(((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0))" ( (binary_expression "((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)" (parenthesized_expression "((int)DAT_00151f30 < (int)param_1)" ( (binary_expression "(int)DAT_00151f30 < (int)param_1" (cast_expression "(int)DAT_00151f30" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(DAT_00151f38 != (void *)0x0)" ( (binary_expression "DAT_00151f38 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)" ( (comma_expression "iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0" (assignment_expression "iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30)" identifier = (call_expression "memcmp(param_2,DAT_00151f38,DAT_00151f30)" identifier (argument_list "(param_2,DAT_00151f38,DAT_00151f30)" ( identifier , identifier , identifier )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }" { (expression_statement "iVar5 = FUN_000d6990(1);" (assignment_expression "iVar5 = FUN_000d6990(1)" identifier = (call_expression "FUN_000d6990(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "sVar6 = iVar5 + DAT_00151f0c;" (assignment_expression "sVar6 = iVar5 + DAT_00151f0c" identifier = (binary_expression "iVar5 + DAT_00151f0c" identifier + identifier)) ;) }) (else_clause "else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" else (compound_statement "{\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" { (labeled_statement "LAB_000d77ac:\n      sVar6 = FUN_000d6990(1);" statement_identifier : (expression_statement "sVar6 = FUN_000d6990(1);" (assignment_expression "sVar6 = FUN_000d6990(1)" identifier = (call_expression "FUN_000d6990(1)" identifier (argument_list "(1)" ( number_literal )))) ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }))))) (expression_statement "pcVar7 = *(char **)PTR_DAT_0014e6b0;" (assignment_expression "pcVar7 = *(char **)PTR_DAT_0014e6b0" identifier = (pointer_expression "*(char **)PTR_DAT_0014e6b0" * (cast_expression "(char **)PTR_DAT_0014e6b0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (if_statement "if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" if (parenthesized_expression "(DAT_00151f54 == 0)" ( (binary_expression "DAT_00151f54 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }" { (if_statement "if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" if (parenthesized_expression "((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)))" ( (binary_expression "(pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (parenthesized_expression "(pcVar7 < param_2)" ( (binary_expression "pcVar7 < param_2" identifier < identifier) )) && (parenthesized_expression "(param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" ( (binary_expression "param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier < (binary_expression "pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier + (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4" (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b0 + 4)" * (cast_expression "(int *)(PTR_DAT_0014e6b0 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0014e6b0 + 4)" ( (binary_expression "PTR_DAT_0014e6b0 + 4" identifier + number_literal) )))) + number_literal) + (binary_expression "DAT_00151f4c * 4" identifier * number_literal)) )))))) ))) )) (compound_statement "{\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" { (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (goto_statement "goto LAB_000d7a8b;" goto statement_identifier ;) })) }) (else_clause "else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" else (compound_statement "{\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (if_statement "if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }" if (parenthesized_expression "((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)))" ( (binary_expression "(pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (parenthesized_expression "(pcVar7 < param_2)" ( (binary_expression "pcVar7 < param_2" identifier < identifier) )) && (parenthesized_expression "(param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" ( (binary_expression "param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier < (binary_expression "pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" identifier + (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" ( (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4" (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b0 + 4)" * (cast_expression "(int *)(PTR_DAT_0014e6b0 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0014e6b0 + 4)" ( (binary_expression "PTR_DAT_0014e6b0 + 4" identifier + number_literal) )))) + number_literal) + (binary_expression "DAT_00151f4c * 4" identifier * number_literal)) )))))) ))) )) (compound_statement "{\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }" { (labeled_statement "LAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;" statement_identifier : (expression_statement "local_24 = (int)param_2 - (int)pcVar7;" (assignment_expression "local_24 = (int)param_2 - (int)pcVar7" identifier = (binary_expression "(int)param_2 - (int)pcVar7" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar7" ( (type_descriptor "int" primitive_type) ) identifier))) ;)) })) (if_statement "if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }" { (if_statement "if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" if (parenthesized_expression "((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1)))" ( (binary_expression "(DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))" (parenthesized_expression "(DAT_00151f1c < (int)param_1)" ( (binary_expression "DAT_00151f1c < (int)param_1" identifier < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "(DAT_00151f1c < (int)(local_24 + param_1))" ( (binary_expression "DAT_00151f1c < (int)(local_24 + param_1)" identifier < (cast_expression "(int)(local_24 + param_1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_24 + param_1)" ( (binary_expression "local_24 + param_1" identifier + identifier) )))) ))) )) (compound_statement "{\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }" { (labeled_statement "LAB_000d7860:\n          DAT_00151f5c = 1;" statement_identifier : (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" identifier = number_literal) ;)) (expression_statement "sVar6 = sVar6 - local_2c;" (assignment_expression "sVar6 = sVar6 - local_2c" identifier = (binary_expression "sVar6 - local_2c" identifier - identifier)) ;) }) (else_clause "else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" else (if_statement "if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" if (parenthesized_expression "(((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10))" ( (binary_expression "((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)" (parenthesized_expression "((int)_rl_screenwidth <= (int)DAT_00151f0c)" ( (binary_expression "(int)_rl_screenwidth <= (int)DAT_00151f0c" (cast_expression "(int)_rl_screenwidth" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)DAT_00151f0c" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(_rl_last_v_pos == DAT_00151f10)" ( (binary_expression "_rl_last_v_pos == DAT_00151f10" identifier == identifier) ))) )) (compound_statement "{\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" { (expression_statement "sVar8 = DAT_00151f20;" (assignment_expression "sVar8 = DAT_00151f20" identifier = identifier) ;) (if_statement "if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }" if (parenthesized_expression "((int)sVar6 < (int)DAT_00151f20)" ( (binary_expression "(int)sVar6 < (int)DAT_00151f20" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)DAT_00151f20" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n            sVar8 = sVar6;\n          }" { (expression_statement "sVar8 = sVar6;" (assignment_expression "sVar8 = sVar6" identifier = identifier) ;) })) (if_statement "if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;" if (parenthesized_expression "(((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1))" ( (binary_expression "((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)" (parenthesized_expression "((int)local_2c <= (int)sVar8)" ( (binary_expression "(int)local_2c <= (int)sVar8" (cast_expression "(int)local_2c" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)sVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)" ( (binary_expression "(int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1" (cast_expression "(int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20)" ( (binary_expression "(DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20" (parenthesized_expression "(DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4))" ( (binary_expression "DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" identifier - (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" * (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" ( (binary_expression "*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b4 + 4)" * (cast_expression "(int *)(PTR_DAT_0014e6b4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_0014e6b4 + 4)" ( (binary_expression "PTR_DAT_0014e6b4 + 4" identifier + number_literal) )))) + (binary_expression "_rl_last_v_pos * 4" identifier * number_literal)) ))))) )) - identifier) ))) < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) (goto_statement "goto LAB_000d7860;" goto statement_identifier ;)) })))) })) }))) (if_statement "if (sVar3 == sVar6) {\n      return;\n    }" if (parenthesized_expression "(sVar3 == sVar6)" ( (binary_expression "sVar3 == sVar6" identifier == identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "sVar3 = _rl_last_c_pos;" (assignment_expression "sVar3 = _rl_last_c_pos" identifier = identifier) ;) (if_statement "if (rl_byte_oriented == 0) goto joined_r0x000d7986;" if (parenthesized_expression "(rl_byte_oriented == 0)" ( (binary_expression "rl_byte_oriented == 0" identifier == number_literal) )) (goto_statement "goto joined_r0x000d7986;" goto statement_identifier ;)) }))) (expression_statement "sVar3 = _rl_last_c_pos - local_2c;" (assignment_expression "sVar3 = _rl_last_c_pos - local_2c" identifier = (binary_expression "_rl_last_c_pos - local_2c" identifier - identifier)) ;) (labeled_statement "joined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" statement_identifier : (if_statement "if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" if (parenthesized_expression "(((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3))))" ( (binary_expression "((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))" (parenthesized_expression "((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6)))" ( (binary_expression "(sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))" (parenthesized_expression "(sVar6 == 0)" ( (binary_expression "sVar6 == 0" identifier == number_literal) )) || (parenthesized_expression "((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))" ( (binary_expression "(int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6)" (cast_expression "(int)(sVar6 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(sVar6 + 1)" ( (binary_expression "sVar6 + 1" identifier + number_literal) ))) < (cast_expression "(int)(_rl_last_c_pos - sVar6)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(_rl_last_c_pos - sVar6)" ( (binary_expression "_rl_last_c_pos - sVar6" identifier - identifier) )))) ))) )) || (parenthesized_expression "((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))" ( (parenthesized_expression "(_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3))" ( (binary_expression "_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)" (binary_expression "_rl_term_autowrap != 0" identifier != number_literal) && (parenthesized_expression "(_rl_screenwidth == sVar3)" ( (binary_expression "_rl_screenwidth == sVar3" identifier == identifier) ))) )) ))) )) (compound_statement "{\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" { (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" identifier (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" ( identifier , number_literal , identifier ))) ;) (expression_statement "_rl_last_c_pos = 0;" (assignment_expression "_rl_last_c_pos = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) }))) (if_statement "if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" if (parenthesized_expression "((int)local_34 < (int)sVar6)" ( (binary_expression "(int)local_34 < (int)sVar6" (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }" { (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" if (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" ( (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" ( (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(rl_byte_oriented != 0)" ( (binary_expression "rl_byte_oriented != 0" identifier != number_literal) ))) )) (compound_statement "{\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }" { (if_statement "if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }" if (parenthesized_expression "((int)local_34 < (int)param_1)" ( (binary_expression "(int)local_34 < (int)param_1" (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }" { (expression_statement "pcVar7 = param_2 + local_34;" (assignment_expression "pcVar7 = param_2 + local_34" identifier = (binary_expression "param_2 + local_34" identifier + identifier)) ;) (do_statement "do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);" do (compound_statement "{\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        }" { (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" identifier = (binary_expression "pcVar7 + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar1,rl_outstream);" (call_expression "putc((int)cVar1,rl_outstream)" identifier (argument_list "((int)cVar1,rl_outstream)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) }) while (parenthesized_expression "(pcVar7 != param_2 + param_1)" ( (binary_expression "pcVar7 != param_2 + param_1" identifier != (binary_expression "param_2 + param_1" identifier + identifier)) )) ;) })) }) (else_clause "else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" else (if_statement "if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" if (parenthesized_expression "(_rl_term_forward_char == 0)" ( (binary_expression "_rl_term_forward_char == 0" identifier == number_literal) )) (compound_statement "{\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }" { (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" identifier (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }" if (parenthesized_expression "(0 < (int)param_1)" ( (binary_expression "0 < (int)param_1" number_literal < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }" { (expression_statement "pcVar7 = param_2 + param_1;" (assignment_expression "pcVar7 = param_2 + param_1" identifier = (binary_expression "param_2 + param_1" identifier + identifier)) ;) (do_statement "do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);" do (compound_statement "{\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        }" { (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" identifier = (binary_expression "param_2 + 1" identifier + number_literal)) ;) (expression_statement "putc((int)cVar1,rl_outstream);" (call_expression "putc((int)cVar1,rl_outstream)" identifier (argument_list "((int)cVar1,rl_outstream)" ( (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) }) while (parenthesized_expression "(pcVar7 != param_2)" ( (binary_expression "pcVar7 != param_2" identifier != identifier) )) ;) })) }) (else_clause "else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" else (compound_statement "{\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" { (do_statement "do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);" do (compound_statement "{\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      }" { (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" identifier = (binary_expression "local_34 + 1" identifier + number_literal)) ;) (expression_statement "tputs(_rl_term_forward_char,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_forward_char,1,_rl_output_character_function)" identifier (argument_list "(_rl_term_forward_char,1,_rl_output_character_function)" ( identifier , number_literal , identifier ))) ;) }) while (parenthesized_expression "(local_34 != sVar6)" ( (binary_expression "local_34 != sVar6" identifier != identifier) )) ;) }))))) }) (else_clause "else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" else (if_statement "if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" if (parenthesized_expression "((int)sVar6 < (int)local_34)" ( (binary_expression "(int)sVar6 < (int)local_34" (cast_expression "(int)sVar6" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    _rl_backspace(local_34 - sVar6);\n  }" { (expression_statement "_rl_backspace(local_34 - sVar6);" (call_expression "_rl_backspace(local_34 - sVar6)" identifier (argument_list "(local_34 - sVar6)" ( (binary_expression "local_34 - sVar6" identifier - identifier) ))) ;) })))) (expression_statement "_rl_last_c_pos = sVar6;" (assignment_expression "_rl_last_c_pos = sVar6" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) }))))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression IDENT * LIT)) )))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression IDENT * LIT)) )))))) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;)) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) || (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) ))))) )) - IDENT) ))) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) (goto_statement goto statement_identifier ;)) })))) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , IDENT ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) }) (else_clause else (compound_statement { (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) )) ;) }))))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) ))) ;) })))) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void _rl_move_cursor_relative(size_t param_1,char *param_2)\n\n{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}" (primitive_type "void") (function_declarator "_rl_move_cursor_relative(size_t param_1,char *param_2)" (identifier "_rl_move_cursor_relative") (parameter_list "(size_t param_1,char *param_2)" (( "(") (parameter_declaration "size_t param_1" (primitive_type "size_t") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  bool bVar2;\n  size_t sVar3;\n  size_t sVar4;\n  int iVar5;\n  size_t sVar6;\n  char *pcVar7;\n  size_t sVar8;\n  size_t local_34;\n  size_t local_2c;\n  int local_24;\n  \n  sVar4 = __ctype_get_mb_cur_max();\n  sVar3 = _rl_last_c_pos;\n  if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }\n  local_34 = _rl_last_c_pos;\n  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }\n  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }\n  sVar3 = _rl_last_c_pos - local_2c;\njoined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }\n  if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }\n  _rl_last_c_pos = sVar6;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "size_t sVar8;" (primitive_type "size_t") (identifier "sVar8") (; ";")) (declaration "size_t local_34;" (primitive_type "size_t") (identifier "local_34") (; ";")) (declaration "size_t local_2c;" (primitive_type "size_t") (identifier "local_2c") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "sVar4 = __ctype_get_mb_cur_max();" (assignment_expression "sVar4 = __ctype_get_mb_cur_max()" (identifier "sVar4") (= "=") (call_expression "__ctype_get_mb_cur_max()" (identifier "__ctype_get_mb_cur_max") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "sVar3 = _rl_last_c_pos;" (assignment_expression "sVar3 = _rl_last_c_pos" (identifier "sVar3") (= "=") (identifier "_rl_last_c_pos")) (; ";")) (if_statement "if (_rl_last_v_pos == 0) {\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }\n  else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" (if "if") (parenthesized_expression "(_rl_last_v_pos == 0)" (( "(") (binary_expression "_rl_last_v_pos == 0" (identifier "_rl_last_v_pos") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_2c = DAT_00151f20;\n    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }\n  }" ({ "{") (expression_statement "local_2c = DAT_00151f20;" (assignment_expression "local_2c = DAT_00151f20" (identifier "local_2c") (= "=") (identifier "DAT_00151f20")) (; ";")) (if_statement "if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {\n      local_2c = DAT_00151f14;\n    }" (if "if") (parenthesized_expression "((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c))" (( "(") (binary_expression "(DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)" (parenthesized_expression "(DAT_00151f20 != 0)" (( "(") (binary_expression "DAT_00151f20 != 0" (identifier "DAT_00151f20") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((int)_rl_screenwidth < (int)DAT_00151f0c)" (( "(") (binary_expression "(int)_rl_screenwidth < (int)DAT_00151f0c" (cast_expression "(int)_rl_screenwidth" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "_rl_screenwidth")) (< "<") (cast_expression "(int)DAT_00151f0c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_00151f0c"))) () ")"))) () ")")) (compound_statement "{\n      local_2c = DAT_00151f14;\n    }" ({ "{") (expression_statement "local_2c = DAT_00151f14;" (assignment_expression "local_2c = DAT_00151f14" (identifier "local_2c") (= "=") (identifier "DAT_00151f14")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" (else "else") (compound_statement "{\n    local_2c = 0;\n    if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }\n  }" ({ "{") (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (if_statement "if (_rl_last_v_pos == DAT_00151f10) {\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }" (if "if") (parenthesized_expression "(_rl_last_v_pos == DAT_00151f10)" (( "(") (binary_expression "_rl_last_v_pos == DAT_00151f10" (identifier "_rl_last_v_pos") (== "==") (identifier "DAT_00151f10")) () ")")) (compound_statement "{\n      local_2c = DAT_00151f20 - DAT_00151f14;\n    }" ({ "{") (expression_statement "local_2c = DAT_00151f20 - DAT_00151f14;" (assignment_expression "local_2c = DAT_00151f20 - DAT_00151f14" (identifier "local_2c") (= "=") (binary_expression "DAT_00151f20 - DAT_00151f14" (identifier "DAT_00151f20") (- "-") (identifier "DAT_00151f14"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_34 = _rl_last_c_pos;" (assignment_expression "local_34 = _rl_last_c_pos" (identifier "local_34") (= "=") (identifier "_rl_last_c_pos")) (; ";")) (if_statement "if ((_rl_last_c_pos == 0) && (param_1 == 0)) {\n    return;\n  }" (if "if") (parenthesized_expression "((_rl_last_c_pos == 0) && (param_1 == 0))" (( "(") (binary_expression "(_rl_last_c_pos == 0) && (param_1 == 0)" (parenthesized_expression "(_rl_last_c_pos == 0)" (( "(") (binary_expression "_rl_last_c_pos == 0" (identifier "_rl_last_c_pos") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }\n  else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" (if "if") (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" (( "(") (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" (( "(") (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar4")) (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(rl_byte_oriented != 0)" (( "(") (binary_expression "rl_byte_oriented != 0" (identifier "rl_byte_oriented") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    sVar6 = param_1;\n    if (_rl_last_c_pos == param_1) {\n      return;\n    }\n  }" ({ "{") (expression_statement "sVar6 = param_1;" (assignment_expression "sVar6 = param_1" (identifier "sVar6") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (_rl_last_c_pos == param_1) {\n      return;\n    }" (if "if") (parenthesized_expression "(_rl_last_c_pos == param_1)" (( "(") (binary_expression "_rl_last_c_pos == param_1" (identifier "_rl_last_c_pos") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" (else "else") (compound_statement "{\n    if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }\n    pcVar7 = *(char **)PTR_DAT_0014e6b0;\n    if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }\n    if (sVar3 == sVar6) {\n      return;\n    }\n    sVar3 = _rl_last_c_pos;\n    if (rl_byte_oriented == 0) goto joined_r0x000d7986;\n  }" ({ "{") (if_statement "if (DAT_00151f30 == param_1) {\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }\n    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" (if "if") (parenthesized_expression "(DAT_00151f30 == param_1)" (( "(") (binary_expression "DAT_00151f30 == param_1" (identifier "DAT_00151f30") (== "==") (identifier "param_1")) () ")")) (compound_statement "{\n      iVar5 = memcmp(param_2,DAT_00151f38,param_1);\n      if (iVar5 != 0) goto LAB_000d77ac;\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = DAT_00151f0c;\n    }" ({ "{") (expression_statement "iVar5 = memcmp(param_2,DAT_00151f38,param_1);" (assignment_expression "iVar5 = memcmp(param_2,DAT_00151f38,param_1)" (identifier "iVar5") (= "=") (call_expression "memcmp(param_2,DAT_00151f38,param_1)" (identifier "memcmp") (argument_list "(param_2,DAT_00151f38,param_1)" (( "(") (identifier "param_2") (, ",") (identifier "DAT_00151f38") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar5 != 0) goto LAB_000d77ac;" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000d77ac;" (goto "goto") (statement_identifier "LAB_000d77ac") (; ";"))) (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" (identifier "DAT_00151f5c") (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "sVar6 = DAT_00151f0c;" (assignment_expression "sVar6 = DAT_00151f0c" (identifier "sVar6") (= "=") (identifier "DAT_00151f0c")) (; ";")) (} "}")) (else_clause "else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" (else "else") (if_statement "if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }\n    else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" (if "if") (parenthesized_expression "((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0))" (( "(") (binary_expression "(((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&\n            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)" (parenthesized_expression "(((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0))" (( "(") (binary_expression "((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)" (parenthesized_expression "((int)DAT_00151f30 < (int)param_1)" (( "(") (binary_expression "(int)DAT_00151f30 < (int)param_1" (cast_expression "(int)DAT_00151f30" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_00151f30")) (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (&& "&&") (parenthesized_expression "(DAT_00151f38 != (void *)0x0)" (( "(") (binary_expression "DAT_00151f38 != (void *)0x0" (identifier "DAT_00151f38") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)" (( "(") (comma_expression "iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0" (assignment_expression "iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30)" (identifier "iVar5") (= "=") (call_expression "memcmp(param_2,DAT_00151f38,DAT_00151f30)" (identifier "memcmp") (argument_list "(param_2,DAT_00151f38,DAT_00151f30)" (( "(") (identifier "param_2") (, ",") (identifier "DAT_00151f38") (, ",") (identifier "DAT_00151f30") () ")")))) (, ",") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar5 = FUN_000d6990(1);\n      DAT_00151f5c = 1;\n      bVar2 = false;\n      sVar6 = iVar5 + DAT_00151f0c;\n    }" ({ "{") (expression_statement "iVar5 = FUN_000d6990(1);" (assignment_expression "iVar5 = FUN_000d6990(1)" (identifier "iVar5") (= "=") (call_expression "FUN_000d6990(1)" (identifier "FUN_000d6990") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";")) (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" (identifier "DAT_00151f5c") (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "sVar6 = iVar5 + DAT_00151f0c;" (assignment_expression "sVar6 = iVar5 + DAT_00151f0c" (identifier "sVar6") (= "=") (binary_expression "iVar5 + DAT_00151f0c" (identifier "iVar5") (+ "+") (identifier "DAT_00151f0c"))) (; ";")) (} "}")) (else_clause "else {\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" (else "else") (compound_statement "{\nLAB_000d77ac:\n      sVar6 = FUN_000d6990(1);\n      bVar2 = true;\n    }" ({ "{") (labeled_statement "LAB_000d77ac:\n      sVar6 = FUN_000d6990(1);" (statement_identifier "LAB_000d77ac") (: ":") (expression_statement "sVar6 = FUN_000d6990(1);" (assignment_expression "sVar6 = FUN_000d6990(1)" (identifier "sVar6") (= "=") (call_expression "FUN_000d6990(1)" (identifier "FUN_000d6990") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";"))) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}")))))) (expression_statement "pcVar7 = *(char **)PTR_DAT_0014e6b0;" (assignment_expression "pcVar7 = *(char **)PTR_DAT_0014e6b0" (identifier "pcVar7") (= "=") (pointer_expression "*(char **)PTR_DAT_0014e6b0" (* "*") (cast_expression "(char **)PTR_DAT_0014e6b0" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_DAT_0014e6b0")))) (; ";")) (if_statement "if (DAT_00151f54 == 0) {\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }\n    else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(DAT_00151f54 == 0)" (( "(") (binary_expression "DAT_00151f54 == 0" (identifier "DAT_00151f54") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }\n    }" ({ "{") (if_statement "if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" (if "if") (parenthesized_expression "((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)))" (( "(") (binary_expression "(pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (parenthesized_expression "(pcVar7 < param_2)" (( "(") (binary_expression "pcVar7 < param_2" (identifier "pcVar7") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (( "(") (binary_expression "param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (identifier "param_2") (< "<") (binary_expression "pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (identifier "pcVar7") (+ "+") (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (* "*") (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (( "(") (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4" (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b0 + 4)" (* "*") (cast_expression "(int *)(PTR_DAT_0014e6b0 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0014e6b0 + 4)" (( "(") (binary_expression "PTR_DAT_0014e6b0 + 4" (identifier "PTR_DAT_0014e6b0") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) (+ "+") (binary_expression "DAT_00151f4c * 4" (identifier "DAT_00151f4c") (* "*") (number_literal "4"))) () ")")))))) () ")"))) () ")")) (compound_statement "{\n        bVar2 = false;\n        goto LAB_000d7a8b;\n      }" ({ "{") (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_000d7a8b;" (goto "goto") (statement_identifier "LAB_000d7a8b") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" (else "else") (compound_statement "{\n      local_24 = 0;\n      if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }\n      if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }\n    }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }" (if "if") (parenthesized_expression "((pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)))" (( "(") (binary_expression "(pcVar7 < param_2) &&\n         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (parenthesized_expression "(pcVar7 < param_2)" (( "(") (binary_expression "pcVar7 < param_2" (identifier "pcVar7") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "(param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))" (( "(") (binary_expression "param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (identifier "param_2") (< "<") (binary_expression "pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (identifier "pcVar7") (+ "+") (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (* "*") (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4)" (( "(") (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4" (binary_expression "*(int *)(PTR_DAT_0014e6b0 + 4) + 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b0 + 4)" (* "*") (cast_expression "(int *)(PTR_DAT_0014e6b0 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0014e6b0 + 4)" (( "(") (binary_expression "PTR_DAT_0014e6b0 + 4" (identifier "PTR_DAT_0014e6b0") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) (+ "+") (binary_expression "DAT_00151f4c * 4" (identifier "DAT_00151f4c") (* "*") (number_literal "4"))) () ")")))))) () ")"))) () ")")) (compound_statement "{\nLAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;\n      }" ({ "{") (labeled_statement "LAB_000d7a8b:\n        local_24 = (int)param_2 - (int)pcVar7;" (statement_identifier "LAB_000d7a8b") (: ":") (expression_statement "local_24 = (int)param_2 - (int)pcVar7;" (assignment_expression "local_24 = (int)param_2 - (int)pcVar7" (identifier "local_24") (= "=") (binary_expression "(int)param_2 - (int)pcVar7" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)pcVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar7")))) (; ";"))) (} "}"))) (if_statement "if (bVar2) {\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }\n      }" ({ "{") (if_statement "if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }\n        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" (if "if") (parenthesized_expression "((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1)))" (( "(") (binary_expression "(DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))" (parenthesized_expression "(DAT_00151f1c < (int)param_1)" (( "(") (binary_expression "DAT_00151f1c < (int)param_1" (identifier "DAT_00151f1c") (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (|| "||") (parenthesized_expression "(DAT_00151f1c < (int)(local_24 + param_1))" (( "(") (binary_expression "DAT_00151f1c < (int)(local_24 + param_1)" (identifier "DAT_00151f1c") (< "<") (cast_expression "(int)(local_24 + param_1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(local_24 + param_1)" (( "(") (binary_expression "local_24 + param_1" (identifier "local_24") (+ "+") (identifier "param_1")) () ")")))) () ")"))) () ")")) (compound_statement "{\nLAB_000d7860:\n          DAT_00151f5c = 1;\n          sVar6 = sVar6 - local_2c;\n        }" ({ "{") (labeled_statement "LAB_000d7860:\n          DAT_00151f5c = 1;" (statement_identifier "LAB_000d7860") (: ":") (expression_statement "DAT_00151f5c = 1;" (assignment_expression "DAT_00151f5c = 1" (identifier "DAT_00151f5c") (= "=") (number_literal "1")) (; ";"))) (expression_statement "sVar6 = sVar6 - local_2c;" (assignment_expression "sVar6 = sVar6 - local_2c" (identifier "sVar6") (= "=") (binary_expression "sVar6 - local_2c" (identifier "sVar6") (- "-") (identifier "local_2c"))) (; ";")) (} "}")) (else_clause "else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" (else "else") (if_statement "if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" (if "if") (parenthesized_expression "(((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10))" (( "(") (binary_expression "((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)" (parenthesized_expression "((int)_rl_screenwidth <= (int)DAT_00151f0c)" (( "(") (binary_expression "(int)_rl_screenwidth <= (int)DAT_00151f0c" (cast_expression "(int)_rl_screenwidth" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "_rl_screenwidth")) (<= "<=") (cast_expression "(int)DAT_00151f0c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_00151f0c"))) () ")")) (&& "&&") (parenthesized_expression "(_rl_last_v_pos == DAT_00151f10)" (( "(") (binary_expression "_rl_last_v_pos == DAT_00151f10" (identifier "_rl_last_v_pos") (== "==") (identifier "DAT_00151f10")) () ")"))) () ")")) (compound_statement "{\n          sVar8 = DAT_00151f20;\n          if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }\n          if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;\n        }" ({ "{") (expression_statement "sVar8 = DAT_00151f20;" (assignment_expression "sVar8 = DAT_00151f20" (identifier "sVar8") (= "=") (identifier "DAT_00151f20")) (; ";")) (if_statement "if ((int)sVar6 < (int)DAT_00151f20) {\n            sVar8 = sVar6;\n          }" (if "if") (parenthesized_expression "((int)sVar6 < (int)DAT_00151f20)" (( "(") (binary_expression "(int)sVar6 < (int)DAT_00151f20" (cast_expression "(int)sVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar6")) (< "<") (cast_expression "(int)DAT_00151f20" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_00151f20"))) () ")")) (compound_statement "{\n            sVar8 = sVar6;\n          }" ({ "{") (expression_statement "sVar8 = sVar6;" (assignment_expression "sVar8 = sVar6" (identifier "sVar8") (= "=") (identifier "sVar6")) (; ";")) (} "}"))) (if_statement "if (((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;" (if "if") (parenthesized_expression "(((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1))" (( "(") (binary_expression "((int)local_2c <= (int)sVar8) &&\n             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)" (parenthesized_expression "((int)local_2c <= (int)sVar8)" (( "(") (binary_expression "(int)local_2c <= (int)sVar8" (cast_expression "(int)local_2c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_2c")) (<= "<=") (cast_expression "(int)sVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar8"))) () ")")) (&& "&&") (parenthesized_expression "((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1)" (( "(") (binary_expression "(int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20) < (int)param_1" (cast_expression "(int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20)" (( "(") (binary_expression "(DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -\n                   DAT_00151f20" (parenthesized_expression "(DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4))" (( "(") (binary_expression "DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" (identifier "DAT_00151f1c") (- "-") (pointer_expression "*(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" (* "*") (cast_expression "(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)" (( "(") (binary_expression "*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4" (pointer_expression "*(int *)(PTR_DAT_0014e6b4 + 4)" (* "*") (cast_expression "(int *)(PTR_DAT_0014e6b4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_0014e6b4 + 4)" (( "(") (binary_expression "PTR_DAT_0014e6b4 + 4" (identifier "PTR_DAT_0014e6b4") (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "_rl_last_v_pos * 4" (identifier "_rl_last_v_pos") (* "*") (number_literal "4"))) () ")"))))) () ")")) (- "-") (identifier "DAT_00151f20")) () ")"))) (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) () ")")) (goto_statement "goto LAB_000d7860;" (goto "goto") (statement_identifier "LAB_000d7860") (; ";"))) (} "}"))))) (} "}"))) (} "}")))) (if_statement "if (sVar3 == sVar6) {\n      return;\n    }" (if "if") (parenthesized_expression "(sVar3 == sVar6)" (( "(") (binary_expression "sVar3 == sVar6" (identifier "sVar3") (== "==") (identifier "sVar6")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "sVar3 = _rl_last_c_pos;" (assignment_expression "sVar3 = _rl_last_c_pos" (identifier "sVar3") (= "=") (identifier "_rl_last_c_pos")) (; ";")) (if_statement "if (rl_byte_oriented == 0) goto joined_r0x000d7986;" (if "if") (parenthesized_expression "(rl_byte_oriented == 0)" (( "(") (binary_expression "rl_byte_oriented == 0" (identifier "rl_byte_oriented") (== "==") (number_literal "0")) () ")")) (goto_statement "goto joined_r0x000d7986;" (goto "goto") (statement_identifier "joined_r0x000d7986") (; ";"))) (} "}")))) (expression_statement "sVar3 = _rl_last_c_pos - local_2c;" (assignment_expression "sVar3 = _rl_last_c_pos - local_2c" (identifier "sVar3") (= "=") (binary_expression "_rl_last_c_pos - local_2c" (identifier "_rl_last_c_pos") (- "-") (identifier "local_2c"))) (; ";")) (labeled_statement "joined_r0x000d7986:\n  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" (statement_identifier "joined_r0x000d7986") (: ":") (if_statement "if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" (if "if") (parenthesized_expression "(((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3))))" (( "(") (binary_expression "((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||\n     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))" (parenthesized_expression "((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6)))" (( "(") (binary_expression "(sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))" (parenthesized_expression "(sVar6 == 0)" (( "(") (binary_expression "sVar6 == 0" (identifier "sVar6") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))" (( "(") (binary_expression "(int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6)" (cast_expression "(int)(sVar6 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(sVar6 + 1)" (( "(") (binary_expression "sVar6 + 1" (identifier "sVar6") (+ "+") (number_literal "1")) () ")"))) (< "<") (cast_expression "(int)(_rl_last_c_pos - sVar6)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(_rl_last_c_pos - sVar6)" (( "(") (binary_expression "_rl_last_c_pos - sVar6" (identifier "_rl_last_c_pos") (- "-") (identifier "sVar6")) () ")")))) () ")"))) () ")")) (|| "||") (parenthesized_expression "((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))" (( "(") (parenthesized_expression "(_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3))" (( "(") (binary_expression "_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)" (binary_expression "_rl_term_autowrap != 0" (identifier "_rl_term_autowrap") (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(_rl_screenwidth == sVar3)" (( "(") (binary_expression "_rl_screenwidth == sVar3" (identifier "_rl_screenwidth") (== "==") (identifier "sVar3")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n    _rl_last_c_pos = 0;\n    local_34 = 0;\n  }" ({ "{") (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" (identifier "tputs") (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" (( "(") (identifier "_rl_term_cr") (, ",") (number_literal "1") (, ",") (identifier "PTR__rl_output_character_function_00149ea0") () ")"))) (; ";")) (expression_statement "_rl_last_c_pos = 0;" (assignment_expression "_rl_last_c_pos = 0" (identifier "_rl_last_c_pos") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if ((int)local_34 < (int)sVar6) {\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }\n  else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" (if "if") (parenthesized_expression "((int)local_34 < (int)sVar6)" (( "(") (binary_expression "(int)local_34 < (int)sVar6" (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34")) (< "<") (cast_expression "(int)sVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar6"))) () ")")) (compound_statement "{\n    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }\n  }" ({ "{") (if_statement "if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }\n    else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" (if "if") (parenthesized_expression "(((int)sVar4 < 2) || (rl_byte_oriented != 0))" (( "(") (binary_expression "((int)sVar4 < 2) || (rl_byte_oriented != 0)" (parenthesized_expression "((int)sVar4 < 2)" (( "(") (binary_expression "(int)sVar4 < 2" (cast_expression "(int)sVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar4")) (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(rl_byte_oriented != 0)" (( "(") (binary_expression "rl_byte_oriented != 0" (identifier "rl_byte_oriented") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }\n    }" ({ "{") (if_statement "if ((int)local_34 < (int)param_1) {\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }" (if "if") (parenthesized_expression "((int)local_34 < (int)param_1)" (( "(") (binary_expression "(int)local_34 < (int)param_1" (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34")) (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (compound_statement "{\n        pcVar7 = param_2 + local_34;\n        do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);\n      }" ({ "{") (expression_statement "pcVar7 = param_2 + local_34;" (assignment_expression "pcVar7 = param_2 + local_34" (identifier "pcVar7") (= "=") (binary_expression "param_2 + local_34" (identifier "param_2") (+ "+") (identifier "local_34"))) (; ";")) (do_statement "do {\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2 + param_1);" (do "do") (compound_statement "{\n          cVar1 = *pcVar7;\n          pcVar7 = pcVar7 + 1;\n          putc((int)cVar1,rl_outstream);\n        }" ({ "{") (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" (identifier "cVar1") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + 1;" (assignment_expression "pcVar7 = pcVar7 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + 1" (identifier "pcVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "putc((int)cVar1,rl_outstream);" (call_expression "putc((int)cVar1,rl_outstream)" (identifier "putc") (argument_list "((int)cVar1,rl_outstream)" (( "(") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) (, ",") (identifier "rl_outstream") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar7 != param_2 + param_1)" (( "(") (binary_expression "pcVar7 != param_2 + param_1" (identifier "pcVar7") (!= "!=") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1"))) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" (else "else") (if_statement "if (_rl_term_forward_char == 0) {\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }\n    else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" (if "if") (parenthesized_expression "(_rl_term_forward_char == 0)" (( "(") (binary_expression "_rl_term_forward_char == 0" (identifier "_rl_term_forward_char") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);\n      if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }\n    }" ({ "{") (expression_statement "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);" (call_expression "tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" (identifier "tputs") (argument_list "(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0)" (( "(") (identifier "_rl_term_cr") (, ",") (number_literal "1") (, ",") (identifier "PTR__rl_output_character_function_00149ea0") () ")"))) (; ";")) (if_statement "if (0 < (int)param_1) {\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }" (if "if") (parenthesized_expression "(0 < (int)param_1)" (( "(") (binary_expression "0 < (int)param_1" (number_literal "0") (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (compound_statement "{\n        pcVar7 = param_2 + param_1;\n        do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);\n      }" ({ "{") (expression_statement "pcVar7 = param_2 + param_1;" (assignment_expression "pcVar7 = param_2 + param_1" (identifier "pcVar7") (= "=") (binary_expression "param_2 + param_1" (identifier "param_2") (+ "+") (identifier "param_1"))) (; ";")) (do_statement "do {\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        } while (pcVar7 != param_2);" (do "do") (compound_statement "{\n          cVar1 = *param_2;\n          param_2 = param_2 + 1;\n          putc((int)cVar1,rl_outstream);\n        }" ({ "{") (expression_statement "cVar1 = *param_2;" (assignment_expression "cVar1 = *param_2" (identifier "cVar1") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "param_2 = param_2 + 1;" (assignment_expression "param_2 = param_2 + 1" (identifier "param_2") (= "=") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "putc((int)cVar1,rl_outstream);" (call_expression "putc((int)cVar1,rl_outstream)" (identifier "putc") (argument_list "((int)cVar1,rl_outstream)" (( "(") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) (, ",") (identifier "rl_outstream") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar7 != param_2)" (( "(") (binary_expression "pcVar7 != param_2" (identifier "pcVar7") (!= "!=") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" (else "else") (compound_statement "{\n      do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);\n    }" ({ "{") (do_statement "do {\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      } while (local_34 != sVar6);" (do "do") (compound_statement "{\n        local_34 = local_34 + 1;\n        tputs(_rl_term_forward_char,1,_rl_output_character_function);\n      }" ({ "{") (expression_statement "local_34 = local_34 + 1;" (assignment_expression "local_34 = local_34 + 1" (identifier "local_34") (= "=") (binary_expression "local_34 + 1" (identifier "local_34") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "tputs(_rl_term_forward_char,1,_rl_output_character_function);" (call_expression "tputs(_rl_term_forward_char,1,_rl_output_character_function)" (identifier "tputs") (argument_list "(_rl_term_forward_char,1,_rl_output_character_function)" (( "(") (identifier "_rl_term_forward_char") (, ",") (number_literal "1") (, ",") (identifier "_rl_output_character_function") () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(local_34 != sVar6)" (( "(") (binary_expression "local_34 != sVar6" (identifier "local_34") (!= "!=") (identifier "sVar6")) () ")")) (; ";")) (} "}")))))) (} "}")) (else_clause "else if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" (else "else") (if_statement "if ((int)sVar6 < (int)local_34) {\n    _rl_backspace(local_34 - sVar6);\n  }" (if "if") (parenthesized_expression "((int)sVar6 < (int)local_34)" (( "(") (binary_expression "(int)sVar6 < (int)local_34" (cast_expression "(int)sVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "sVar6")) (< "<") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) () ")")) (compound_statement "{\n    _rl_backspace(local_34 - sVar6);\n  }" ({ "{") (expression_statement "_rl_backspace(local_34 - sVar6);" (call_expression "_rl_backspace(local_34 - sVar6)" (identifier "_rl_backspace") (argument_list "(local_34 - sVar6)" (( "(") (binary_expression "local_34 - sVar6" (identifier "local_34") (- "-") (identifier "sVar6")) () ")"))) (; ";")) (} "}"))))) (expression_statement "_rl_last_c_pos = sVar6;" (assignment_expression "_rl_last_c_pos = sVar6" (identifier "_rl_last_c_pos") (= "=") (identifier "sVar6")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(int var_9,char *var_19)

{
  char cVar1;
  bool bVar2;
  int var_24;
  size_t sVar4;
  int var_15;
  int var_13;
  char *var_18;
  int var_27;
  int var_23;
  int var_22;
  
  sVar4 = var_1();
  var_13 = var_11;
  var_24 = var_8;
  if (var_2 == 0) {
    var_23 = var_3;
    if ((var_3 != 0) && (var_4 < var_5)) {
      var_23 = var_7;
    }
  }
  else {
    var_23 = 0;
    if (var_2 == var_6) {
      var_23 = var_3 - var_7;
    }
  }
  var_27 = var_8;
  if ((var_8 == 0) && (var_9 == 0)) {
    return;
  }
  if (((int)sVar4 < 2) || (var_10 != 0)) {
    var_13 = var_9;
    if (var_8 == var_9) {
      return;
    }
  }
  else {
    if (var_11 == var_9) {
      var_13 = var_12(var_19,var_14,var_9);
      if (var_13 != 0) goto LAB_000d77ac;
      cpos_adjusted = 1;
      bVar2 = false;
      var_13 = var_5;
    }
    else if (((var_11 < var_9) && (var_14 != (char *)0x0)) &&
            (var_15 = var_12(var_19,var_14,var_11), var_15 == 0)) {
      var_13 = var_16(var_19,var_13,var_9,1);
      cpos_adjusted = 1;
      bVar2 = false;
      var_13 = var_13 + var_5;
    }
    else {
LAB_000d77ac:
      var_13 = var_16(var_19,0,var_9,1);
      bVar2 = true;
    }
    var_18 = line_state_invisible->line;
    if (var_17 == 0) {
      if ((var_18 < var_19) && (var_19 < var_18 + line_state_invisible->lbreaks[var_20 + 1])) {
        bVar2 = false;
        goto LAB_000d7a8b;
      }
    }
    else {
      var_22 = 0;
      if ((var_18 < var_19) && (var_19 < var_18 + line_state_invisible->lbreaks[var_20 + 1])) {
LAB_000d7a8b:
        var_22 = (int)var_19 - (int)var_18;
      }
      if (bVar2) {
        if ((var_21 < var_9) || (var_21 < var_22 + var_9)) {
LAB_000d7860:
          cpos_adjusted = 1;
          var_13 = var_13 - var_23;
        }
        else if ((var_4 <= var_5) &&
                (var_2 == var_6)) {
          var_15 = var_3;
          if (var_13 < var_3) {
            var_15 = var_13;
          }
          if ((var_23 <= var_15) &&
             ((var_21 - line_state_visible->lbreaks[var_2]) - var_3 <
              var_9)) goto LAB_000d7860;
        }
      }
    }
    if (var_24 == var_13) {
      return;
    }
    var_24 = var_8;
    if (var_10 == 0) goto joined_r0x000d7986;
  }
  var_24 = var_8 - var_23;
joined_r0x000d7986:
  if (((var_13 == 0) || (var_13 + 1 < var_8 - var_13)) ||
     ((var_25 != 0 && (var_4 == var_24)))) {
    var_26(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
    var_8 = 0;
    var_27 = 0;
  }
  if (var_27 < var_13) {
    if (((int)sVar4 < 2) || (var_10 != 0)) {
      if (var_27 < var_9) {
        var_18 = var_19 + var_27;
        do {
          cVar1 = *var_18;
          var_18 = var_18 + 1;
          var_28((int)cVar1,(type_1 *)rl_outstream);
        } while (var_18 != var_19 + var_9);
      }
    }
    else if (var_29 == (char *)0x0) {
      var_26(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
      if (0 < var_9) {
        var_18 = var_19 + var_9;
        do {
          cVar1 = *var_19;
          var_19 = var_19 + 1;
          var_28((int)cVar1,(type_1 *)rl_outstream);
        } while (var_18 != var_19);
      }
    }
    else {
      do {
        var_27 = var_27 + 1;
        var_26(var_29,1,_rl_output_character_function);
      } while (var_27 != var_13);
    }
  }
  else if (var_13 < var_27) {
    var_30(var_27 - var_13);
  }
  var_8 = var_13;
  return;
}


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

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

void MASKED(size_t param_1,char *param_2)

{
  char cVar1;
  bool bVar2;
  size_t sVar3;
  size_t sVar4;
  int iVar5;
  size_t sVar6;
  char *pcVar7;
  size_t sVar8;
  size_t local_34;
  size_t local_2c;
  int local_24;
  
  sVar4 = __ctype_get_mb_cur_max();
  sVar3 = _rl_last_c_pos;
  if (_rl_last_v_pos == 0) {
    local_2c = DAT_00151f20;
    if ((DAT_00151f20 != 0) && ((int)_rl_screenwidth < (int)DAT_00151f0c)) {
      local_2c = DAT_00151f14;
    }
  }
  else {
    local_2c = 0;
    if (_rl_last_v_pos == DAT_00151f10) {
      local_2c = DAT_00151f20 - DAT_00151f14;
    }
  }
  local_34 = _rl_last_c_pos;
  if ((_rl_last_c_pos == 0) && (param_1 == 0)) {
    return;
  }
  if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {
    sVar6 = param_1;
    if (_rl_last_c_pos == param_1) {
      return;
    }
  }
  else {
    if (DAT_00151f30 == param_1) {
      iVar5 = memcmp(param_2,DAT_00151f38,param_1);
      if (iVar5 != 0) goto LAB_000d77ac;
      DAT_00151f5c = 1;
      bVar2 = false;
      sVar6 = DAT_00151f0c;
    }
    else if ((((int)DAT_00151f30 < (int)param_1) && (DAT_00151f38 != (void *)0x0)) &&
            (iVar5 = memcmp(param_2,DAT_00151f38,DAT_00151f30), iVar5 == 0)) {
      iVar5 = FUN_000d6990(1);
      DAT_00151f5c = 1;
      bVar2 = false;
      sVar6 = iVar5 + DAT_00151f0c;
    }
    else {
LAB_000d77ac:
      sVar6 = FUN_000d6990(1);
      bVar2 = true;
    }
    pcVar7 = *(char **)PTR_DAT_0014e6b0;
    if (DAT_00151f54 == 0) {
      if ((pcVar7 < param_2) &&
         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {
        bVar2 = false;
        goto LAB_000d7a8b;
      }
    }
    else {
      local_24 = 0;
      if ((pcVar7 < param_2) &&
         (param_2 < pcVar7 + *(int *)(*(int *)(PTR_DAT_0014e6b0 + 4) + 4 + DAT_00151f4c * 4))) {
LAB_000d7a8b:
        local_24 = (int)param_2 - (int)pcVar7;
      }
      if (bVar2) {
        if ((DAT_00151f1c < (int)param_1) || (DAT_00151f1c < (int)(local_24 + param_1))) {
LAB_000d7860:
          DAT_00151f5c = 1;
          sVar6 = sVar6 - local_2c;
        }
        else if (((int)_rl_screenwidth <= (int)DAT_00151f0c) && (_rl_last_v_pos == DAT_00151f10)) {
          sVar8 = DAT_00151f20;
          if ((int)sVar6 < (int)DAT_00151f20) {
            sVar8 = sVar6;
          }
          if (((int)local_2c <= (int)sVar8) &&
             ((int)((DAT_00151f1c - *(int *)(*(int *)(PTR_DAT_0014e6b4 + 4) + _rl_last_v_pos * 4)) -
                   DAT_00151f20) < (int)param_1)) goto LAB_000d7860;
        }
      }
    }
    if (sVar3 == sVar6) {
      return;
    }
    sVar3 = _rl_last_c_pos;
    if (rl_byte_oriented == 0) goto joined_r0x000d7986;
  }
  sVar3 = _rl_last_c_pos - local_2c;
joined_r0x000d7986:
  if (((sVar6 == 0) || ((int)(sVar6 + 1) < (int)(_rl_last_c_pos - sVar6))) ||
     ((_rl_term_autowrap != 0 && (_rl_screenwidth == sVar3)))) {
    tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
    _rl_last_c_pos = 0;
    local_34 = 0;
  }
  if ((int)local_34 < (int)sVar6) {
    if (((int)sVar4 < 2) || (rl_byte_oriented != 0)) {
      if ((int)local_34 < (int)param_1) {
        pcVar7 = param_2 + local_34;
        do {
          cVar1 = *pcVar7;
          pcVar7 = pcVar7 + 1;
          putc((int)cVar1,rl_outstream);
        } while (pcVar7 != param_2 + param_1);
      }
    }
    else if (_rl_term_forward_char == 0) {
      tputs(_rl_term_cr,1,PTR__rl_output_character_function_00149ea0);
      if (0 < (int)param_1) {
        pcVar7 = param_2 + param_1;
        do {
          cVar1 = *param_2;
          param_2 = param_2 + 1;
          putc((int)cVar1,rl_outstream);
        } while (pcVar7 != param_2);
      }
    }
    else {
      do {
        local_34 = local_34 + 1;
        tputs(_rl_term_forward_char,1,_rl_output_character_function);
      } while (local_34 != sVar6);
    }
  }
  else if ((int)sVar6 < (int)local_34) {
    _rl_backspace(local_34 - sVar6);
  }
  _rl_last_c_pos = sVar6;
  return;
}

