
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void _rl_reset_prompt(void)

{
  char cVar1;
  char *pcVar2;
  char *pcVar3;
  size_t sVar4;
  int iVar5;
  
  pcVar2 = rl_prompt;
  if (local_prompt != (char *)0x0) {
    free(local_prompt);
  }
  if (local_prompt_prefix != (char *)0x0) {
    free(local_prompt_prefix);
  }
  local_prompt_prefix = (char *)0x0;
  local_prompt = (char *)0x0;
  local_prompt_len = 0;
  prompt_invis_chars_first_line = 0;
  prompt_last_invisible = 0;
  prompt_physical_chars = 0;
  prompt_visible_length = 0;
  iVar5 = 0;
  sVar4 = local_prompt_len;
  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {
    pcVar3 = strrchr(pcVar2,10);
    if (pcVar3 == (char *)0x0) {
      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,
                                   &prompt_invis_chars_first_line,&prompt_physical_chars);
      local_prompt_prefix = (char *)0x0;
      sVar4 = 0;
      if (local_prompt != (char *)0x0) {
        sVar4 = strlen(local_prompt);
      }
      local_prompt_len = sVar4;
      rl_visible_prompt_length = prompt_visible_length;
      return;
    }
    local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,
                                 &prompt_invis_chars_first_line,&prompt_physical_chars);
    cVar1 = pcVar3[1];
    pcVar3[1] = '\0';
    local_prompt_prefix =
         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);
    pcVar2 = local_prompt;
    pcVar3[1] = cVar1;
    iVar5 = prompt_prefix_length;
    sVar4 = 0;
    if (pcVar2 != (char *)0x0) {
      sVar4 = strlen(pcVar2);
      iVar5 = prompt_prefix_length;
    }
  }
  local_prompt_len = sVar4;
  rl_visible_prompt_length = iVar5;
  return;
}



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

void _rl_reset_prompt(void)

{
  char cVar1;
  char *__s;
  char *pcVar2;
  size_t sVar3;
  undefined4 uVar4;
  
  pcVar2 = rl_prompt;
  if (DAT_00179f38 != (char *)0x0) {
    free(DAT_00179f38);
  }
  if (DAT_00179f34 != (void *)0x0) {
    free(DAT_00179f34);
  }
  DAT_00179f34 = (void *)0x0;
  DAT_00179f38 = (char *)0x0;
  DAT_00179f30 = 0;
  DAT_00179f14 = 0;
  DAT_00179f1c = 0;
  DAT_00179f0c = 0;
  DAT_00179f28 = 0;
  uVar4 = 0;
  sVar3 = DAT_00179f30;
  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {
    pcVar2 = strrchr(pcVar2,10);
    if (pcVar2 == (char *)0x0) {
      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);
      DAT_00179f34 = (void *)0x0;
      sVar3 = 0;
      if (DAT_00179f38 != (char *)0x0) {
        sVar3 = strlen(DAT_00179f38);
      }
      DAT_00179f30 = sVar3;
      rl_visible_prompt_length = DAT_00179f28;
      return;
    }
    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);
    cVar1 = pcVar2[1];
    pcVar2[1] = '\0';
    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);
    __s = DAT_00179f38;
    pcVar2[1] = cVar1;
    uVar4 = DAT_00179f2c;
    sVar3 = 0;
    if (__s != (char *)0x0) {
      sVar3 = strlen(__s);
      uVar4 = DAT_00179f2c;
    }
  }
  DAT_00179f30 = sVar3;
  rl_visible_prompt_length = uVar4;
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x7cb37
SUB ESP,0xc
LEA EAX,[EBX + 0x7b30]
MOV ESI,dword ptr [EAX]
MOV EAX,dword ptr [EBX + 0x7f38]
TEST EAX,EAX
JZ 0x000f54f0
SUB ESP,0xc
PUSH EAX
CALL 0x0002e200
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0x7f34]
TEST EAX,EAX
JZ 0x000f5506
SUB ESP,0xc
PUSH EAX
CALL 0x0002e200
ADD ESP,0x10
MOV dword ptr [EBX + 0x7f34],0x0
XOR EAX,EAX
MOV dword ptr [EBX + 0x7f38],0x0
MOV dword ptr [EBX + 0x7f30],0x0
MOV dword ptr [EBX + 0x7f14],0x0
MOV dword ptr [EBX + 0x7f1c],0x0
MOV dword ptr [EBX + 0x7f0c],0x0
MOV dword ptr [EBX + 0x7f28],0x0
TEST ESI,ESI
JZ 0x000f55fd
CMP byte ptr [ESI],0x0
JZ 0x000f55fd
SUB ESP,0x8
PUSH 0xa
PUSH ESI
CALL 0x0002eab0
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x000f5610
SUB ESP,0x4
LEA EDX,[EBX + 0x7f0c]
LEA ECX,[EBX + 0x7f28]
PUSH EDX
LEA EDX,[EBX + 0x7f14]
LEA EAX,[EAX + 0x1]
PUSH EDX
LEA EDX,[EBX + 0x7f1c]
PUSH EDX
MOV EDX,0x1
CALL 0x000f4d30
ADD ESP,0xc
MOVZX EBP,byte ptr [EDI + 0x1]
MOV byte ptr [EDI + 0x1],0x0
PUSH 0x0
MOV EDX,0x1
LEA ECX,[EBX + 0x7f2c]
PUSH 0x0
PUSH 0x0
MOV dword ptr [EBX + 0x7f38],EAX
MOV EAX,ESI
CALL 0x000f4d30
MOV EDX,dword ptr [EBX + 0x7f38]
ADD ESP,0x10
MOV dword ptr [EBX + 0x7f34],EAX
MOV EAX,EBP
MOV byte ptr [EDI + 0x1],AL
XOR EAX,EAX
TEST EDX,EDX
JZ 0x000f55f1
SUB ESP,0xc
PUSH EDX
CALL 0x0002e760
ADD ESP,0x10
MOV dword ptr [EBX + 0x7f30],EAX
MOV EAX,dword ptr [EBX + 0x7f2c]
LEA EDX,[EBX + 0x7b2c]
MOV dword ptr [EDX],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0x7f0c]
XOR EDX,EDX
PUSH EAX
LEA EAX,[EBX + 0x7f14]
LEA ECX,[EBX + 0x7f28]
PUSH EAX
LEA EAX,[EBX + 0x7f1c]
PUSH EAX
MOV EAX,ESI
CALL 0x000f4d30
ADD ESP,0x10
MOV dword ptr [EBX + 0x7f34],0x0
MOV EDX,EAX
MOV dword ptr [EBX + 0x7f38],EAX
XOR EAX,EAX
TEST EDX,EDX
JZ 0x000f565e
SUB ESP,0xc
PUSH EDX
CALL 0x0002e760
ADD ESP,0x10
MOV dword ptr [EBX + 0x7f30],EAX
LEA EDX,[EBX + 0x7b2c]
MOV EAX,dword ptr [EBX + 0x7f28]
MOV dword ptr [EDX],EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}\n\n" comment (function_definition "void _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}" primitive_type (function_declarator "_rl_reset_prompt(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "pcVar2 = rl_prompt;" (assignment_expression "pcVar2 = rl_prompt" identifier = identifier) ;) (if_statement "if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }" if (parenthesized_expression "(DAT_00179f38 != (char *)0x0)" ( (binary_expression "DAT_00179f38 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(DAT_00179f38);\n  }" { (expression_statement "free(DAT_00179f38);" (call_expression "free(DAT_00179f38)" identifier (argument_list "(DAT_00179f38)" ( identifier ))) ;) })) (if_statement "if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }" if (parenthesized_expression "(DAT_00179f34 != (void *)0x0)" ( (binary_expression "DAT_00179f34 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(DAT_00179f34);\n  }" { (expression_statement "free(DAT_00179f34);" (call_expression "free(DAT_00179f34)" identifier (argument_list "(DAT_00179f34)" ( identifier ))) ;) })) (expression_statement "DAT_00179f34 = (void *)0x0;" (assignment_expression "DAT_00179f34 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00179f38 = (char *)0x0;" (assignment_expression "DAT_00179f38 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00179f30 = 0;" (assignment_expression "DAT_00179f30 = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f14 = 0;" (assignment_expression "DAT_00179f14 = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f1c = 0;" (assignment_expression "DAT_00179f1c = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f0c = 0;" (assignment_expression "DAT_00179f0c = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f28 = 0;" (assignment_expression "DAT_00179f28 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "sVar3 = DAT_00179f30;" (assignment_expression "sVar3 = DAT_00179f30" identifier = identifier) ;) (if_statement "if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }" if (parenthesized_expression "((pcVar2 != (char *)0x0) && (*pcVar2 != '\0'))" ( (binary_expression "(pcVar2 != (char *)0x0) && (*pcVar2 != '\0')" (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }" { (expression_statement "pcVar2 = strrchr(pcVar2,10);" (assignment_expression "pcVar2 = strrchr(pcVar2,10)" identifier = (call_expression "strrchr(pcVar2,10)" identifier (argument_list "(pcVar2,10)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }" { (expression_statement "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);" (assignment_expression "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier = (cast_expression "(char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier (argument_list "(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (pointer_expression "&DAT_00179f1c" & identifier) , (pointer_expression "&DAT_00179f14" & identifier) , (pointer_expression "&DAT_00179f0c" & identifier) ))))) ;) (expression_statement "DAT_00179f34 = (void *)0x0;" (assignment_expression "DAT_00179f34 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }" if (parenthesized_expression "(DAT_00179f38 != (char *)0x0)" ( (binary_expression "DAT_00179f38 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar3 = strlen(DAT_00179f38);\n      }" { (expression_statement "sVar3 = strlen(DAT_00179f38);" (assignment_expression "sVar3 = strlen(DAT_00179f38)" identifier = (call_expression "strlen(DAT_00179f38)" identifier (argument_list "(DAT_00179f38)" ( identifier )))) ;) })) (expression_statement "DAT_00179f30 = sVar3;" (assignment_expression "DAT_00179f30 = sVar3" identifier = identifier) ;) (expression_statement "rl_visible_prompt_length = DAT_00179f28;" (assignment_expression "rl_visible_prompt_length = DAT_00179f28" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);" (assignment_expression "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier = (cast_expression "(char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier (argument_list "(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (pointer_expression "&DAT_00179f1c" & identifier) , (pointer_expression "&DAT_00179f14" & identifier) , (pointer_expression "&DAT_00179f0c" & identifier) ))))) ;) (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);" (assignment_expression "DAT_00179f34 = (void *)FUN_000f4d30(0,0,0)" identifier = (cast_expression "(void *)FUN_000f4d30(0,0,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f4d30(0,0,0)" identifier (argument_list "(0,0,0)" ( number_literal , number_literal , number_literal ))))) ;) (expression_statement "__s = DAT_00179f38;" (assignment_expression "__s = DAT_00179f38" identifier = identifier) ;) (expression_statement "pcVar2[1] = cVar1;" (assignment_expression "pcVar2[1] = cVar1" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = DAT_00179f2c;" (assignment_expression "uVar4 = DAT_00179f2c" identifier = identifier) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "uVar4 = DAT_00179f2c;" (assignment_expression "uVar4 = DAT_00179f2c" identifier = identifier) ;) })) })) (expression_statement "DAT_00179f30 = sVar3;" (assignment_expression "DAT_00179f30 = sVar3" identifier = identifier) ;) (expression_statement "rl_visible_prompt_length = uVar4;" (assignment_expression "rl_visible_prompt_length = uVar4" 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 -- yet parameter storage is locked */\n\nvoid _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int iVar5;\n  \n  pcVar2 = rl_prompt;\n  if (local_prompt != (char *)0x0) {\n    free(local_prompt);\n  }\n  if (local_prompt_prefix != (char *)0x0) {\n    free(local_prompt_prefix);\n  }\n  local_prompt_prefix = (char *)0x0;\n  local_prompt = (char *)0x0;\n  local_prompt_len = 0;\n  prompt_invis_chars_first_line = 0;\n  prompt_last_invisible = 0;\n  prompt_physical_chars = 0;\n  prompt_visible_length = 0;\n  iVar5 = 0;\n  sVar4 = local_prompt_len;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar3 = strrchr(pcVar2,10);\n    if (pcVar3 == (char *)0x0) {\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }\n    local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars);\n    cVar1 = pcVar3[1];\n    pcVar3[1] = '\0';\n    local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);\n    pcVar2 = local_prompt;\n    pcVar3[1] = cVar1;\n    iVar5 = prompt_prefix_length;\n    sVar4 = 0;\n    if (pcVar2 != (char *)0x0) {\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }\n  }\n  local_prompt_len = sVar4;\n  rl_visible_prompt_length = iVar5;\n  return;\n}\n\n" comment comment (function_definition "void _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int iVar5;\n  \n  pcVar2 = rl_prompt;\n  if (local_prompt != (char *)0x0) {\n    free(local_prompt);\n  }\n  if (local_prompt_prefix != (char *)0x0) {\n    free(local_prompt_prefix);\n  }\n  local_prompt_prefix = (char *)0x0;\n  local_prompt = (char *)0x0;\n  local_prompt_len = 0;\n  prompt_invis_chars_first_line = 0;\n  prompt_last_invisible = 0;\n  prompt_physical_chars = 0;\n  prompt_visible_length = 0;\n  iVar5 = 0;\n  sVar4 = local_prompt_len;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar3 = strrchr(pcVar2,10);\n    if (pcVar3 == (char *)0x0) {\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }\n    local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars);\n    cVar1 = pcVar3[1];\n    pcVar3[1] = '\0';\n    local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);\n    pcVar2 = local_prompt;\n    pcVar3[1] = cVar1;\n    iVar5 = prompt_prefix_length;\n    sVar4 = 0;\n    if (pcVar2 != (char *)0x0) {\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }\n  }\n  local_prompt_len = sVar4;\n  rl_visible_prompt_length = iVar5;\n  return;\n}" primitive_type (function_declarator "_rl_reset_prompt(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  char *pcVar2;\n  char *pcVar3;\n  size_t sVar4;\n  int iVar5;\n  \n  pcVar2 = rl_prompt;\n  if (local_prompt != (char *)0x0) {\n    free(local_prompt);\n  }\n  if (local_prompt_prefix != (char *)0x0) {\n    free(local_prompt_prefix);\n  }\n  local_prompt_prefix = (char *)0x0;\n  local_prompt = (char *)0x0;\n  local_prompt_len = 0;\n  prompt_invis_chars_first_line = 0;\n  prompt_last_invisible = 0;\n  prompt_physical_chars = 0;\n  prompt_visible_length = 0;\n  iVar5 = 0;\n  sVar4 = local_prompt_len;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar3 = strrchr(pcVar2,10);\n    if (pcVar3 == (char *)0x0) {\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }\n    local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars);\n    cVar1 = pcVar3[1];\n    pcVar3[1] = '\0';\n    local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);\n    pcVar2 = local_prompt;\n    pcVar3[1] = cVar1;\n    iVar5 = prompt_prefix_length;\n    sVar4 = 0;\n    if (pcVar2 != (char *)0x0) {\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }\n  }\n  local_prompt_len = sVar4;\n  rl_visible_prompt_length = iVar5;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "pcVar2 = rl_prompt;" (assignment_expression "pcVar2 = rl_prompt" identifier = identifier) ;) (if_statement "if (local_prompt != (char *)0x0) {\n    free(local_prompt);\n  }" if (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)) )) (compound_statement "{\n    free(local_prompt);\n  }" { (expression_statement "free(local_prompt);" (call_expression "free(local_prompt)" identifier (argument_list "(local_prompt)" ( identifier ))) ;) })) (if_statement "if (local_prompt_prefix != (char *)0x0) {\n    free(local_prompt_prefix);\n  }" if (parenthesized_expression "(local_prompt_prefix != (char *)0x0)" ( (binary_expression "local_prompt_prefix != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(local_prompt_prefix);\n  }" { (expression_statement "free(local_prompt_prefix);" (call_expression "free(local_prompt_prefix)" identifier (argument_list "(local_prompt_prefix)" ( identifier ))) ;) })) (expression_statement "local_prompt_prefix = (char *)0x0;" (assignment_expression "local_prompt_prefix = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_prompt = (char *)0x0;" (assignment_expression "local_prompt = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_prompt_len = 0;" (assignment_expression "local_prompt_len = 0" identifier = number_literal) ;) (expression_statement "prompt_invis_chars_first_line = 0;" (assignment_expression "prompt_invis_chars_first_line = 0" identifier = number_literal) ;) (expression_statement "prompt_last_invisible = 0;" (assignment_expression "prompt_last_invisible = 0" identifier = number_literal) ;) (expression_statement "prompt_physical_chars = 0;" (assignment_expression "prompt_physical_chars = 0" identifier = number_literal) ;) (expression_statement "prompt_visible_length = 0;" (assignment_expression "prompt_visible_length = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar4 = local_prompt_len;" (assignment_expression "sVar4 = local_prompt_len" identifier = identifier) ;) (if_statement "if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar3 = strrchr(pcVar2,10);\n    if (pcVar3 == (char *)0x0) {\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }\n    local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars);\n    cVar1 = pcVar3[1];\n    pcVar3[1] = '\0';\n    local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);\n    pcVar2 = local_prompt;\n    pcVar3[1] = cVar1;\n    iVar5 = prompt_prefix_length;\n    sVar4 = 0;\n    if (pcVar2 != (char *)0x0) {\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }\n  }" if (parenthesized_expression "((pcVar2 != (char *)0x0) && (*pcVar2 != '\0'))" ( (binary_expression "(pcVar2 != (char *)0x0) && (*pcVar2 != '\0')" (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar3 = strrchr(pcVar2,10);\n    if (pcVar3 == (char *)0x0) {\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }\n    local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars);\n    cVar1 = pcVar3[1];\n    pcVar3[1] = '\0';\n    local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);\n    pcVar2 = local_prompt;\n    pcVar3[1] = cVar1;\n    iVar5 = prompt_prefix_length;\n    sVar4 = 0;\n    if (pcVar2 != (char *)0x0) {\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }\n  }" { (expression_statement "pcVar3 = strrchr(pcVar2,10);" (assignment_expression "pcVar3 = strrchr(pcVar2,10)" identifier = (call_expression "strrchr(pcVar2,10)" identifier (argument_list "(pcVar2,10)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);\n      local_prompt_prefix = (char *)0x0;\n      sVar4 = 0;\n      if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }\n      local_prompt_len = sVar4;\n      rl_visible_prompt_length = prompt_visible_length;\n      return;\n    }" { (expression_statement "local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars);" (assignment_expression "local_prompt = expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars)" identifier = (call_expression "expand_prompt(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars)" identifier (argument_list "(pcVar2,0,&prompt_visible_length,&prompt_last_invisible,\n                                   &prompt_invis_chars_first_line,&prompt_physical_chars)" ( identifier , number_literal , (pointer_expression "&prompt_visible_length" & identifier) , (pointer_expression "&prompt_last_invisible" & identifier) , (pointer_expression "&prompt_invis_chars_first_line" & identifier) , (pointer_expression "&prompt_physical_chars" & identifier) )))) ;) (expression_statement "local_prompt_prefix = (char *)0x0;" (assignment_expression "local_prompt_prefix = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (if_statement "if (local_prompt != (char *)0x0) {\n        sVar4 = strlen(local_prompt);\n      }" if (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)) )) (compound_statement "{\n        sVar4 = strlen(local_prompt);\n      }" { (expression_statement "sVar4 = strlen(local_prompt);" (assignment_expression "sVar4 = strlen(local_prompt)" identifier = (call_expression "strlen(local_prompt)" identifier (argument_list "(local_prompt)" ( identifier )))) ;) })) (expression_statement "local_prompt_len = sVar4;" (assignment_expression "local_prompt_len = sVar4" identifier = identifier) ;) (expression_statement "rl_visible_prompt_length = prompt_visible_length;" (assignment_expression "rl_visible_prompt_length = prompt_visible_length" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars);" (assignment_expression "local_prompt = expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars)" identifier = (call_expression "expand_prompt(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars)" identifier (argument_list "(pcVar3 + 1,1,&prompt_visible_length,&prompt_last_invisible,\n                                 &prompt_invis_chars_first_line,&prompt_physical_chars)" ( (binary_expression "pcVar3 + 1" identifier + number_literal) , number_literal , (pointer_expression "&prompt_visible_length" & identifier) , (pointer_expression "&prompt_last_invisible" & identifier) , (pointer_expression "&prompt_invis_chars_first_line" & identifier) , (pointer_expression "&prompt_physical_chars" & identifier) )))) ;) (expression_statement "cVar1 = pcVar3[1];" (assignment_expression "cVar1 = pcVar3[1]" identifier = (subscript_expression "pcVar3[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar3[1] = '\0';" (assignment_expression "pcVar3[1] = '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);" (assignment_expression "local_prompt_prefix =\n         expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0)" identifier = (call_expression "expand_prompt(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0)" identifier (argument_list "(pcVar2,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0)" ( identifier , number_literal , (pointer_expression "&prompt_prefix_length" & identifier) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar2 = local_prompt;" (assignment_expression "pcVar2 = local_prompt" identifier = identifier) ;) (expression_statement "pcVar3[1] = cVar1;" (assignment_expression "pcVar3[1] = cVar1" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = prompt_prefix_length;" (assignment_expression "iVar5 = prompt_prefix_length" identifier = identifier) ;) (expression_statement "sVar4 = 0;" (assignment_expression "sVar4 = 0" identifier = number_literal) ;) (if_statement "if (pcVar2 != (char *)0x0) {\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }" if (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar4 = strlen(pcVar2);\n      iVar5 = prompt_prefix_length;\n    }" { (expression_statement "sVar4 = strlen(pcVar2);" (assignment_expression "sVar4 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "iVar5 = prompt_prefix_length;" (assignment_expression "iVar5 = prompt_prefix_length" identifier = identifier) ;) })) })) (expression_statement "local_prompt_len = sVar4;" (assignment_expression "local_prompt_len = sVar4" identifier = identifier) ;) (expression_statement "rl_visible_prompt_length = iVar5;" (assignment_expression "rl_visible_prompt_length = iVar5" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}\n\n" (function_definition "void _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}" primitive_type (function_declarator "_rl_reset_prompt(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "pcVar2 = rl_prompt;" (assignment_expression "pcVar2 = rl_prompt" identifier = identifier) ;) (if_statement "if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }" if (parenthesized_expression "(DAT_00179f38 != (char *)0x0)" ( (binary_expression "DAT_00179f38 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(DAT_00179f38);\n  }" { (expression_statement "free(DAT_00179f38);" (call_expression "free(DAT_00179f38)" identifier (argument_list "(DAT_00179f38)" ( identifier ))) ;) })) (if_statement "if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }" if (parenthesized_expression "(DAT_00179f34 != (void *)0x0)" ( (binary_expression "DAT_00179f34 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    free(DAT_00179f34);\n  }" { (expression_statement "free(DAT_00179f34);" (call_expression "free(DAT_00179f34)" identifier (argument_list "(DAT_00179f34)" ( identifier ))) ;) })) (expression_statement "DAT_00179f34 = (void *)0x0;" (assignment_expression "DAT_00179f34 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00179f38 = (char *)0x0;" (assignment_expression "DAT_00179f38 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00179f30 = 0;" (assignment_expression "DAT_00179f30 = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f14 = 0;" (assignment_expression "DAT_00179f14 = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f1c = 0;" (assignment_expression "DAT_00179f1c = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f0c = 0;" (assignment_expression "DAT_00179f0c = 0" identifier = number_literal) ;) (expression_statement "DAT_00179f28 = 0;" (assignment_expression "DAT_00179f28 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "sVar3 = DAT_00179f30;" (assignment_expression "sVar3 = DAT_00179f30" identifier = identifier) ;) (if_statement "if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }" if (parenthesized_expression "((pcVar2 != (char *)0x0) && (*pcVar2 != '\0'))" ( (binary_expression "(pcVar2 != (char *)0x0) && (*pcVar2 != '\0')" (parenthesized_expression "(pcVar2 != (char *)0x0)" ( (binary_expression "pcVar2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar2 != '\0')" ( (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }" { (expression_statement "pcVar2 = strrchr(pcVar2,10);" (assignment_expression "pcVar2 = strrchr(pcVar2,10)" identifier = (call_expression "strrchr(pcVar2,10)" identifier (argument_list "(pcVar2,10)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }" { (expression_statement "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);" (assignment_expression "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier = (cast_expression "(char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier (argument_list "(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (pointer_expression "&DAT_00179f1c" & identifier) , (pointer_expression "&DAT_00179f14" & identifier) , (pointer_expression "&DAT_00179f0c" & identifier) ))))) ;) (expression_statement "DAT_00179f34 = (void *)0x0;" (assignment_expression "DAT_00179f34 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }" if (parenthesized_expression "(DAT_00179f38 != (char *)0x0)" ( (binary_expression "DAT_00179f38 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar3 = strlen(DAT_00179f38);\n      }" { (expression_statement "sVar3 = strlen(DAT_00179f38);" (assignment_expression "sVar3 = strlen(DAT_00179f38)" identifier = (call_expression "strlen(DAT_00179f38)" identifier (argument_list "(DAT_00179f38)" ( identifier )))) ;) })) (expression_statement "DAT_00179f30 = sVar3;" (assignment_expression "DAT_00179f30 = sVar3" identifier = identifier) ;) (expression_statement "rl_visible_prompt_length = DAT_00179f28;" (assignment_expression "rl_visible_prompt_length = DAT_00179f28" identifier = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);" (assignment_expression "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier = (cast_expression "(char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" identifier (argument_list "(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" ( (pointer_expression "&DAT_00179f1c" & identifier) , (pointer_expression "&DAT_00179f14" & identifier) , (pointer_expression "&DAT_00179f0c" & identifier) ))))) ;) (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" identifier = (subscript_expression "pcVar2[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);" (assignment_expression "DAT_00179f34 = (void *)FUN_000f4d30(0,0,0)" identifier = (cast_expression "(void *)FUN_000f4d30(0,0,0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000f4d30(0,0,0)" identifier (argument_list "(0,0,0)" ( number_literal , number_literal , number_literal ))))) ;) (expression_statement "__s = DAT_00179f38;" (assignment_expression "__s = DAT_00179f38" identifier = identifier) ;) (expression_statement "pcVar2[1] = cVar1;" (assignment_expression "pcVar2[1] = cVar1" (subscript_expression "pcVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = DAT_00179f2c;" (assignment_expression "uVar4 = DAT_00179f2c" identifier = identifier) ;) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" identifier = number_literal) ;) (if_statement "if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }" { (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "uVar4 = DAT_00179f2c;" (assignment_expression "uVar4 = DAT_00179f2c" identifier = identifier) ;) })) })) (expression_statement "DAT_00179f30 = sVar3;" (assignment_expression "DAT_00179f30 = sVar3" identifier = identifier) ;) (expression_statement "rl_visible_prompt_length = uVar4;" (assignment_expression "rl_visible_prompt_length = uVar4" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void _rl_reset_prompt(void)\n\n{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}" (primitive_type "void") (function_declarator "_rl_reset_prompt(void)" (identifier "_rl_reset_prompt") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char cVar1;\n  char *__s;\n  char *pcVar2;\n  size_t sVar3;\n  undefined4 uVar4;\n  \n  pcVar2 = rl_prompt;\n  if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }\n  if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }\n  DAT_00179f34 = (void *)0x0;\n  DAT_00179f38 = (char *)0x0;\n  DAT_00179f30 = 0;\n  DAT_00179f14 = 0;\n  DAT_00179f1c = 0;\n  DAT_00179f0c = 0;\n  DAT_00179f28 = 0;\n  uVar4 = 0;\n  sVar3 = DAT_00179f30;\n  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }\n  DAT_00179f30 = sVar3;\n  rl_visible_prompt_length = uVar4;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "pcVar2 = rl_prompt;" (assignment_expression "pcVar2 = rl_prompt" (identifier "pcVar2") (= "=") (identifier "rl_prompt")) (; ";")) (if_statement "if (DAT_00179f38 != (char *)0x0) {\n    free(DAT_00179f38);\n  }" (if "if") (parenthesized_expression "(DAT_00179f38 != (char *)0x0)" (( "(") (binary_expression "DAT_00179f38 != (char *)0x0" (identifier "DAT_00179f38") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(DAT_00179f38);\n  }" ({ "{") (expression_statement "free(DAT_00179f38);" (call_expression "free(DAT_00179f38)" (identifier "free") (argument_list "(DAT_00179f38)" (( "(") (identifier "DAT_00179f38") () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_00179f34 != (void *)0x0) {\n    free(DAT_00179f34);\n  }" (if "if") (parenthesized_expression "(DAT_00179f34 != (void *)0x0)" (( "(") (binary_expression "DAT_00179f34 != (void *)0x0" (identifier "DAT_00179f34") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    free(DAT_00179f34);\n  }" ({ "{") (expression_statement "free(DAT_00179f34);" (call_expression "free(DAT_00179f34)" (identifier "free") (argument_list "(DAT_00179f34)" (( "(") (identifier "DAT_00179f34") () ")"))) (; ";")) (} "}"))) (expression_statement "DAT_00179f34 = (void *)0x0;" (assignment_expression "DAT_00179f34 = (void *)0x0" (identifier "DAT_00179f34") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_00179f38 = (char *)0x0;" (assignment_expression "DAT_00179f38 = (char *)0x0" (identifier "DAT_00179f38") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_00179f30 = 0;" (assignment_expression "DAT_00179f30 = 0" (identifier "DAT_00179f30") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00179f14 = 0;" (assignment_expression "DAT_00179f14 = 0" (identifier "DAT_00179f14") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00179f1c = 0;" (assignment_expression "DAT_00179f1c = 0" (identifier "DAT_00179f1c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00179f0c = 0;" (assignment_expression "DAT_00179f0c = 0" (identifier "DAT_00179f0c") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_00179f28 = 0;" (assignment_expression "DAT_00179f28 = 0" (identifier "DAT_00179f28") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar3 = DAT_00179f30;" (assignment_expression "sVar3 = DAT_00179f30" (identifier "sVar3") (= "=") (identifier "DAT_00179f30")) (; ";")) (if_statement "if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }" (if "if") (parenthesized_expression "((pcVar2 != (char *)0x0) && (*pcVar2 != '\0'))" (( "(") (binary_expression "(pcVar2 != (char *)0x0) && (*pcVar2 != '\0')" (parenthesized_expression "(pcVar2 != (char *)0x0)" (( "(") (binary_expression "pcVar2 != (char *)0x0" (identifier "pcVar2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar2 != '\0')" (( "(") (binary_expression "*pcVar2 != '\0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    pcVar2 = strrchr(pcVar2,10);\n    if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }\n    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n    cVar1 = pcVar2[1];\n    pcVar2[1] = '\0';\n    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);\n    __s = DAT_00179f38;\n    pcVar2[1] = cVar1;\n    uVar4 = DAT_00179f2c;\n    sVar3 = 0;\n    if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }\n  }" ({ "{") (expression_statement "pcVar2 = strrchr(pcVar2,10);" (assignment_expression "pcVar2 = strrchr(pcVar2,10)" (identifier "pcVar2") (= "=") (call_expression "strrchr(pcVar2,10)" (identifier "strrchr") (argument_list "(pcVar2,10)" (( "(") (identifier "pcVar2") (, ",") (number_literal "10") () ")")))) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) {\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);\n      DAT_00179f34 = (void *)0x0;\n      sVar3 = 0;\n      if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }\n      DAT_00179f30 = sVar3;\n      rl_visible_prompt_length = DAT_00179f28;\n      return;\n    }" ({ "{") (expression_statement "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);" (assignment_expression "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (identifier "DAT_00179f38") (= "=") (cast_expression "(char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (identifier "FUN_000f4d30") (argument_list "(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (( "(") (pointer_expression "&DAT_00179f1c" (& "&") (identifier "DAT_00179f1c")) (, ",") (pointer_expression "&DAT_00179f14" (& "&") (identifier "DAT_00179f14")) (, ",") (pointer_expression "&DAT_00179f0c" (& "&") (identifier "DAT_00179f0c")) () ")"))))) (; ";")) (expression_statement "DAT_00179f34 = (void *)0x0;" (assignment_expression "DAT_00179f34 = (void *)0x0" (identifier "DAT_00179f34") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (DAT_00179f38 != (char *)0x0) {\n        sVar3 = strlen(DAT_00179f38);\n      }" (if "if") (parenthesized_expression "(DAT_00179f38 != (char *)0x0)" (( "(") (binary_expression "DAT_00179f38 != (char *)0x0" (identifier "DAT_00179f38") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        sVar3 = strlen(DAT_00179f38);\n      }" ({ "{") (expression_statement "sVar3 = strlen(DAT_00179f38);" (assignment_expression "sVar3 = strlen(DAT_00179f38)" (identifier "sVar3") (= "=") (call_expression "strlen(DAT_00179f38)" (identifier "strlen") (argument_list "(DAT_00179f38)" (( "(") (identifier "DAT_00179f38") () ")")))) (; ";")) (} "}"))) (expression_statement "DAT_00179f30 = sVar3;" (assignment_expression "DAT_00179f30 = sVar3" (identifier "DAT_00179f30") (= "=") (identifier "sVar3")) (; ";")) (expression_statement "rl_visible_prompt_length = DAT_00179f28;" (assignment_expression "rl_visible_prompt_length = DAT_00179f28" (identifier "rl_visible_prompt_length") (= "=") (identifier "DAT_00179f28")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);" (assignment_expression "DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (identifier "DAT_00179f38") (= "=") (cast_expression "(char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (identifier "FUN_000f4d30") (argument_list "(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c)" (( "(") (pointer_expression "&DAT_00179f1c" (& "&") (identifier "DAT_00179f1c")) (, ",") (pointer_expression "&DAT_00179f14" (& "&") (identifier "DAT_00179f14")) (, ",") (pointer_expression "&DAT_00179f0c" (& "&") (identifier "DAT_00179f0c")) () ")"))))) (; ";")) (expression_statement "cVar1 = pcVar2[1];" (assignment_expression "cVar1 = pcVar2[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar2[1] = '\0';" (assignment_expression "pcVar2[1] = '\0'" (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);" (assignment_expression "DAT_00179f34 = (void *)FUN_000f4d30(0,0,0)" (identifier "DAT_00179f34") (= "=") (cast_expression "(void *)FUN_000f4d30(0,0,0)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000f4d30(0,0,0)" (identifier "FUN_000f4d30") (argument_list "(0,0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "__s = DAT_00179f38;" (assignment_expression "__s = DAT_00179f38" (identifier "__s") (= "=") (identifier "DAT_00179f38")) (; ";")) (expression_statement "pcVar2[1] = cVar1;" (assignment_expression "pcVar2[1] = cVar1" (subscript_expression "pcVar2[1]" (identifier "pcVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "uVar4 = DAT_00179f2c;" (assignment_expression "uVar4 = DAT_00179f2c" (identifier "uVar4") (= "=") (identifier "DAT_00179f2c")) (; ";")) (expression_statement "sVar3 = 0;" (assignment_expression "sVar3 = 0" (identifier "sVar3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (__s != (char *)0x0) {\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar3 = strlen(__s);\n      uVar4 = DAT_00179f2c;\n    }" ({ "{") (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "uVar4 = DAT_00179f2c;" (assignment_expression "uVar4 = DAT_00179f2c" (identifier "uVar4") (= "=") (identifier "DAT_00179f2c")) (; ";")) (} "}"))) (} "}"))) (expression_statement "DAT_00179f30 = sVar3;" (assignment_expression "DAT_00179f30 = sVar3" (identifier "DAT_00179f30") (= "=") (identifier "sVar3")) (; ";")) (expression_statement "rl_visible_prompt_length = uVar4;" (assignment_expression "rl_visible_prompt_length = uVar4" (identifier "rl_visible_prompt_length") (= "=") (identifier "uVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */

void function_1(void)

{
  char cVar1;
  char *var_4;
  char *var_6;
  size_t sVar4;
  int iVar5;
  
  var_4 = rl_prompt;
  if (var_1 != (char *)0x0) {
    var_2(var_1);
  }
  if (var_3 != (char *)0x0) {
    var_2(var_3);
  }
  var_3 = (char *)0x0;
  var_1 = (char *)0x0;
  local_prompt_len = 0;
  prompt_invis_chars_first_line = 0;
  prompt_last_invisible = 0;
  prompt_physical_chars = 0;
  prompt_visible_length = 0;
  iVar5 = 0;
  sVar4 = local_prompt_len;
  if ((var_4 != (char *)0x0) && (*var_4 != '\0')) {
    var_6 = var_5(var_4,10);
    if (var_6 == (char *)0x0) {
      var_1 = var_7(var_4,0,&prompt_visible_length,&prompt_last_invisible,
                                   &prompt_invis_chars_first_line,&prompt_physical_chars);
      var_3 = (char *)0x0;
      sVar4 = 0;
      if (var_1 != (char *)0x0) {
        sVar4 = var_8(var_1);
      }
      local_prompt_len = sVar4;
      rl_visible_prompt_length = prompt_visible_length;
      return;
    }
    var_1 = var_7(var_6 + 1,1,&prompt_visible_length,&prompt_last_invisible,
                                 &prompt_invis_chars_first_line,&prompt_physical_chars);
    cVar1 = var_6[1];
    var_6[1] = '\0';
    var_3 =
         var_7(var_4,1,&prompt_prefix_length,(int *)0x0,(int *)0x0,(int *)0x0);
    var_4 = var_1;
    var_6[1] = cVar1;
    iVar5 = prompt_prefix_length;
    sVar4 = 0;
    if (var_4 != (char *)0x0) {
      sVar4 = var_8(var_4);
      iVar5 = prompt_prefix_length;
    }
  }
  local_prompt_len = sVar4;
  rl_visible_prompt_length = iVar5;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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 (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_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(void)

{
  char cVar1;
  char *__s;
  char *pcVar2;
  size_t sVar3;
  undefined4 uVar4;
  
  pcVar2 = rl_prompt;
  if (DAT_00179f38 != (char *)0x0) {
    free(DAT_00179f38);
  }
  if (DAT_00179f34 != (void *)0x0) {
    free(DAT_00179f34);
  }
  DAT_00179f34 = (void *)0x0;
  DAT_00179f38 = (char *)0x0;
  DAT_00179f30 = 0;
  DAT_00179f14 = 0;
  DAT_00179f1c = 0;
  DAT_00179f0c = 0;
  DAT_00179f28 = 0;
  uVar4 = 0;
  sVar3 = DAT_00179f30;
  if ((pcVar2 != (char *)0x0) && (*pcVar2 != '\0')) {
    pcVar2 = strrchr(pcVar2,10);
    if (pcVar2 == (char *)0x0) {
      DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);
      DAT_00179f34 = (void *)0x0;
      sVar3 = 0;
      if (DAT_00179f38 != (char *)0x0) {
        sVar3 = strlen(DAT_00179f38);
      }
      DAT_00179f30 = sVar3;
      rl_visible_prompt_length = DAT_00179f28;
      return;
    }
    DAT_00179f38 = (char *)FUN_000f4d30(&DAT_00179f1c,&DAT_00179f14,&DAT_00179f0c);
    cVar1 = pcVar2[1];
    pcVar2[1] = '\0';
    DAT_00179f34 = (void *)FUN_000f4d30(0,0,0);
    __s = DAT_00179f38;
    pcVar2[1] = cVar1;
    uVar4 = DAT_00179f2c;
    sVar3 = 0;
    if (__s != (char *)0x0) {
      sVar3 = strlen(__s);
      uVar4 = DAT_00179f2c;
    }
  }
  DAT_00179f30 = sVar3;
  rl_visible_prompt_length = uVar4;
  return;
}

