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

void sv_histsize(char *name)

{
  char cVar1;
  SHELL_VAR *pSVar2;
  int iVar3;
  char *fname;
  ARRAY *a;
  uint uVar4;
  int in_GS_OFFSET;
  intmax_t num;
  int local_10;
  
  uVar4 = 0;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  last_table_searched = (HASH_TABLE *)0x0;
  if (expanding_redir == 0) {
    uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);
  }
  pSVar2 = find_variable_internal(name,uVar4);
  if (pSVar2 == (SHELL_VAR *)0x0) {
LAB_00056b1c:
    cVar1 = name[4];
  }
  else {
    uVar4 = pSVar2->attributes;
    if ((uVar4 & 0x800) == 0) {
      a = (ARRAY *)pSVar2->value;
    }
    else {
      pSVar2 = find_variable_nameref(pSVar2);
      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;
      uVar4 = pSVar2->attributes;
      a = (ARRAY *)pSVar2->value;
    }
    if ((uVar4 & 4) == 0) {
      if ((uVar4 & 0x40) != 0) {
        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");
      }
    }
    else {
      a = (ARRAY *)array_reference(a,0);
    }
    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;
    iVar3 = legal_number((char *)a,&num);
    if (iVar3 == 0) goto LAB_00056b26;
    cVar1 = name[4];
    if (-1 < (int)num) {
      if (cVar1 == 'S') {
        stifle_history((int)num);
        iVar3 = where_history();
        if (iVar3 < history_lines_this_session) {
          history_lines_this_session = iVar3;
        }
      }
      else {
        fname = get_string_value("HISTFILE");
        history_truncate_file(fname,(int)num);
        if ((int)num < history_lines_in_file) {
          history_lines_in_file = (int)num;
        }
      }
      goto LAB_00056b26;
    }
  }
  if (cVar1 == 'S') {
    unstifle_history();
  }
LAB_00056b26:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

void sv_histsize(int param_1)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  int in_GS_OFFSET;
  int local_1c [3];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  DAT_00177d48 = 0;
  iVar3 = FUN_00054870();
  if (iVar3 == 0) {
LAB_00056b1c:
    cVar1 = *(char *)(param_1 + 4);
  }
  else {
    uVar2 = *(uint *)(iVar3 + 0x14);
    if ((uVar2 & 0x800) == 0) {
      pcVar5 = *(char **)(iVar3 + 4);
    }
    else {
      iVar3 = find_variable_nameref(iVar3);
      if (iVar3 == 0) goto LAB_00056b1c;
      uVar2 = *(uint *)(iVar3 + 0x14);
      pcVar5 = *(char **)(iVar3 + 4);
    }
    if ((uVar2 & 4) == 0) {
      if ((uVar2 & 0x40) != 0) {
        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);
      }
    }
    else {
      pcVar5 = (char *)array_reference(pcVar5,0,0);
    }
    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;
    iVar3 = legal_number(pcVar5,local_1c);
    if (iVar3 == 0) goto LAB_00056b26;
    cVar1 = *(char *)(param_1 + 4);
    if (-1 < local_1c[0]) {
      if (cVar1 == 'S') {
        stifle_history(local_1c[0]);
        iVar3 = where_history();
        if (iVar3 < history_lines_this_session) {
          history_lines_this_session = iVar3;
        }
      }
      else {
        uVar4 = get_string_value("HISTFILE");
        history_truncate_file(uVar4,local_1c[0]);
        if (local_1c[0] < history_lines_in_file) {
          history_lines_in_file = local_1c[0];
        }
      }
      goto LAB_00056b26;
    }
  }
  if (cVar1 == 'S') {
    unstifle_history();
  }
LAB_00056b26:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0010f8b0();
}


PUSH EDI
XOR EDX,EDX
PUSH ESI
PUSH EBX
CALL 0x000312b0
ADD EBX,0x11b556
SUB ESP,0x10
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x20]
MOV dword ptr [EBX + 0x5d48],0x0
LEA EAX,[EBX + 0xd4bc]
MOV EDI,dword ptr [EAX]
TEST EDI,EDI
JNZ 0x00056aef
LEA EAX,[EBX + 0xcfb8]
MOV EDX,dword ptr [EAX]
LEA EAX,[EBX + 0x5cc0]
OR EDX,dword ptr [EAX]
SETNZ DL
MOVZX EDX,DL
MOV EAX,ESI
CALL 0x00054870
TEST EAX,EAX
JZ 0x00056b1c
MOV EDX,dword ptr [EAX + 0x14]
TEST DH,0x8
JNZ 0x00056b40
MOV EAX,dword ptr [EAX + 0x4]
TEST DL,0x4
JNZ 0x00056b5b
AND EDX,0x40
JNZ 0x00056bc8
TEST EAX,EAX
JZ 0x00056b1c
CMP byte ptr [EAX],0x0
JNZ 0x00056b70
CMP byte ptr [ESI + 0x4],0x53
JZ 0x00056bf0
MOV EAX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00056c26
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH EAX
CALL 0x00054f30
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00056b1c
MOV EDX,dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EAX + 0x4]
TEST DL,0x4
JZ 0x00056b0a
SUB ESP,0x4
PUSH 0x0
PUSH 0x0
PUSH EAX
CALL 0x00093c40
ADD ESP,0x10
JMP 0x00056b13
SUB ESP,0x8
LEA EDX,[ESP + 0x8]
PUSH EDX
PUSH EAX
CALL 0x00041800
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00056b26
MOV EDI,dword ptr [ESP]
MOVZX EAX,byte ptr [ESI + 0x4]
TEST EDI,EDI
JS 0x00056be0
CMP AL,0x53
JZ 0x00056c00
SUB ESP,0xc
LEA EAX,[EBX + 0xfffa0ad9]
PUSH EAX
CALL 0x000569d0
POP EDX
POP ECX
PUSH EDI
PUSH EAX
CALL 0x0010c1c0
LEA EAX,[EBX + 0xd47c]
ADD ESP,0x10
CMP dword ptr [EAX],EDI
JLE 0x00056b26
MOV dword ptr [EAX],EDI
JMP 0x00056b26
SUB ESP,0x8
LEA EDX,[EBX + 0xfffb3fc2]
PUSH EDX
PUSH EAX
CALL 0x000976b0
ADD ESP,0x10
JMP 0x00056b13
CMP AL,0x53
JNZ 0x00056b26
LEA ESI,[ESI]
NOP
CALL 0x00108520
JMP 0x00056b26
SUB ESP,0xc
PUSH EDI
CALL 0x00108400
CALL 0x00107a00
LEA EDX,[EBX + 0xd480]
ADD ESP,0x10
CMP dword ptr [EDX],EAX
JLE 0x00056b26
MOV dword ptr [EDX],EAX
JMP 0x00056b26
CALL 0x0010f8b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid sv_histsize(int param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}\n\n" comment (function_definition "void sv_histsize(int param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}" primitive_type (function_declarator "sv_histsize(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0010f8b0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_1c [3];" primitive_type (array_declarator "local_1c [3]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "DAT_00177d48 = 0;" (assignment_expression "DAT_00177d48 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = FUN_00054870();" (assignment_expression "iVar3 = FUN_00054870()" identifier = (call_expression "FUN_00054870()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }" { (labeled_statement "LAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);" statement_identifier : (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" identifier = (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;)) }) (else_clause "else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" else (compound_statement "{\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" { (expression_statement "uVar2 = *(uint *)(iVar3 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" if (parenthesized_expression "((uVar2 & 0x800) == 0)" ( (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" ( (binary_expression "uVar2 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" { (expression_statement "pcVar5 = *(char **)(iVar3 + 4);" (assignment_expression "pcVar5 = *(char **)(iVar3 + 4)" identifier = (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" else (compound_statement "{\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" { (expression_statement "iVar3 = find_variable_nameref(iVar3);" (assignment_expression "iVar3 = find_variable_nameref(iVar3)" identifier = (call_expression "find_variable_nameref(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_00056b1c;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00056b1c;" goto statement_identifier ;)) (expression_statement "uVar2 = *(uint *)(iVar3 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = *(char **)(iVar3 + 4);" (assignment_expression "pcVar5 = *(char **)(iVar3 + 4)" identifier = (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" if (parenthesized_expression "((uVar2 & 4) == 0)" ( (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" ( (binary_expression "uVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }" { (if_statement "if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }" if (parenthesized_expression "((uVar2 & 0x40) != 0)" ( (binary_expression "(uVar2 & 0x40) != 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }" { (expression_statement "pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);" (assignment_expression "pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2)" identifier = (cast_expression "(char *)assoc_reference(pcVar5,&DAT_00125fc2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "assoc_reference(pcVar5,&DAT_00125fc2)" identifier (argument_list "(pcVar5,&DAT_00125fc2)" ( identifier , (pointer_expression "&DAT_00125fc2" & identifier) ))))) ;) })) }) (else_clause "else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" else (compound_statement "{\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" { (expression_statement "pcVar5 = (char *)array_reference(pcVar5,0,0);" (assignment_expression "pcVar5 = (char *)array_reference(pcVar5,0,0)" identifier = (cast_expression "(char *)array_reference(pcVar5,0,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "array_reference(pcVar5,0,0)" identifier (argument_list "(pcVar5,0,0)" ( identifier , number_literal , number_literal ))))) ;) }))) (if_statement "if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;" if (parenthesized_expression "((pcVar5 == (char *)0x0) || (*pcVar5 == '\0'))" ( (binary_expression "(pcVar5 == (char *)0x0) || (*pcVar5 == '\0')" (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*pcVar5 == '\0')" ( (binary_expression "*pcVar5 == '\0'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00056b1c;" goto statement_identifier ;)) (expression_statement "iVar3 = legal_number(pcVar5,local_1c);" (assignment_expression "iVar3 = legal_number(pcVar5,local_1c)" identifier = (call_expression "legal_number(pcVar5,local_1c)" identifier (argument_list "(pcVar5,local_1c)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_00056b26;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00056b26;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" identifier = (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }" if (parenthesized_expression "(-1 < local_1c[0])" ( (binary_expression "-1 < local_1c[0]" number_literal < (subscript_expression "local_1c[0]" identifier [ number_literal ])) )) (compound_statement "{\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }" { (if_statement "if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" if (parenthesized_expression "(cVar1 == 'S')" ( (binary_expression "cVar1 == 'S'" identifier == (char_literal "'S'" ' character ')) )) (compound_statement "{\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }" { (expression_statement "stifle_history(local_1c[0]);" (call_expression "stifle_history(local_1c[0])" identifier (argument_list "(local_1c[0])" ( (subscript_expression "local_1c[0]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar3 = where_history();" (assignment_expression "iVar3 = where_history()" identifier = (call_expression "where_history()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }" if (parenthesized_expression "(iVar3 < history_lines_this_session)" ( (binary_expression "iVar3 < history_lines_this_session" identifier < identifier) )) (compound_statement "{\n          history_lines_this_session = iVar3;\n        }" { (expression_statement "history_lines_this_session = iVar3;" (assignment_expression "history_lines_this_session = iVar3" identifier = identifier) ;) })) }) (else_clause "else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" else (compound_statement "{\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" { (expression_statement "uVar4 = get_string_value("HISTFILE");" (assignment_expression "uVar4 = get_string_value("HISTFILE")" identifier = (call_expression "get_string_value("HISTFILE")" identifier (argument_list "("HISTFILE")" ( (string_literal ""HISTFILE"" " string_content ") )))) ;) (expression_statement "history_truncate_file(uVar4,local_1c[0]);" (call_expression "history_truncate_file(uVar4,local_1c[0])" identifier (argument_list "(uVar4,local_1c[0])" ( identifier , (subscript_expression "local_1c[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }" if (parenthesized_expression "(local_1c[0] < history_lines_in_file)" ( (binary_expression "local_1c[0] < history_lines_in_file" (subscript_expression "local_1c[0]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n          history_lines_in_file = local_1c[0];\n        }" { (expression_statement "history_lines_in_file = local_1c[0];" (assignment_expression "history_lines_in_file = local_1c[0]" identifier = (subscript_expression "local_1c[0]" identifier [ number_literal ])) ;) })) }))) (goto_statement "goto LAB_00056b26;" goto statement_identifier ;) })) }))) (if_statement "if (cVar1 == 'S') {\n    unstifle_history();\n  }" if (parenthesized_expression "(cVar1 == 'S')" ( (binary_expression "cVar1 == 'S'" identifier == (char_literal "'S'" ' character ')) )) (compound_statement "{\n    unstifle_history();\n  }" { (expression_statement "unstifle_history();" (call_expression "unstifle_history()" identifier (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid sv_histsize(char *name)\n\n{\n  char cVar1;\n  SHELL_VAR *pSVar2;\n  int iVar3;\n  char *fname;\n  ARRAY *a;\n  uint uVar4;\n  int in_GS_OFFSET;\n  intmax_t num;\n  int local_10;\n  \n  uVar4 = 0;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  last_table_searched = (HASH_TABLE *)0x0;\n  if (expanding_redir == 0) {\n    uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);\n  }\n  pSVar2 = find_variable_internal(name,uVar4);\n  if (pSVar2 == (SHELL_VAR *)0x0) {\nLAB_00056b1c:\n    cVar1 = name[4];\n  }\n  else {\n    uVar4 = pSVar2->attributes;\n    if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }\n    if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }\n    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;\n    iVar3 = legal_number((char *)a,&num);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = name[4];\n    if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "void sv_histsize(char *name)\n\n{\n  char cVar1;\n  SHELL_VAR *pSVar2;\n  int iVar3;\n  char *fname;\n  ARRAY *a;\n  uint uVar4;\n  int in_GS_OFFSET;\n  intmax_t num;\n  int local_10;\n  \n  uVar4 = 0;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  last_table_searched = (HASH_TABLE *)0x0;\n  if (expanding_redir == 0) {\n    uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);\n  }\n  pSVar2 = find_variable_internal(name,uVar4);\n  if (pSVar2 == (SHELL_VAR *)0x0) {\nLAB_00056b1c:\n    cVar1 = name[4];\n  }\n  else {\n    uVar4 = pSVar2->attributes;\n    if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }\n    if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }\n    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;\n    iVar3 = legal_number((char *)a,&num);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = name[4];\n    if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "sv_histsize(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  SHELL_VAR *pSVar2;\n  int iVar3;\n  char *fname;\n  ARRAY *a;\n  uint uVar4;\n  int in_GS_OFFSET;\n  intmax_t num;\n  int local_10;\n  \n  uVar4 = 0;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  last_table_searched = (HASH_TABLE *)0x0;\n  if (expanding_redir == 0) {\n    uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);\n  }\n  pSVar2 = find_variable_internal(name,uVar4);\n  if (pSVar2 == (SHELL_VAR *)0x0) {\nLAB_00056b1c:\n    cVar1 = name[4];\n  }\n  else {\n    uVar4 = pSVar2->attributes;\n    if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }\n    if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }\n    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;\n    iVar3 = legal_number((char *)a,&num);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = name[4];\n    if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "SHELL_VAR *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *fname;" primitive_type (pointer_declarator "*fname" * identifier) ;) (declaration "ARRAY *a;" type_identifier (pointer_declarator "*a" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "intmax_t num;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "last_table_searched = (HASH_TABLE *)0x0;" (assignment_expression "last_table_searched = (HASH_TABLE *)0x0" identifier = (cast_expression "(HASH_TABLE *)0x0" ( (type_descriptor "HASH_TABLE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (expanding_redir == 0) {\n    uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);\n  }" if (parenthesized_expression "(expanding_redir == 0)" ( (binary_expression "expanding_redir == 0" identifier == number_literal) )) (compound_statement "{\n    uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);\n  }" { (expression_statement "uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0);" (assignment_expression "uVar4 = (uint)(assigning_in_environment != 0 || executing_builtin != 0)" identifier = (call_expression "(uint)(assigning_in_environment != 0 || executing_builtin != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(assigning_in_environment != 0 || executing_builtin != 0)" ( (binary_expression "assigning_in_environment != 0 || executing_builtin != 0" (binary_expression "assigning_in_environment != 0" identifier != number_literal) || (binary_expression "executing_builtin != 0" identifier != number_literal)) )))) ;) })) (expression_statement "pSVar2 = find_variable_internal(name,uVar4);" (assignment_expression "pSVar2 = find_variable_internal(name,uVar4)" identifier = (call_expression "find_variable_internal(name,uVar4)" identifier (argument_list "(name,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (pSVar2 == (SHELL_VAR *)0x0) {\nLAB_00056b1c:\n    cVar1 = name[4];\n  }\n  else {\n    uVar4 = pSVar2->attributes;\n    if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }\n    if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }\n    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;\n    iVar3 = legal_number((char *)a,&num);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = name[4];\n    if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" if (parenthesized_expression "(pSVar2 == (SHELL_VAR *)0x0)" ( (binary_expression "pSVar2 == (SHELL_VAR *)0x0" identifier == (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00056b1c:\n    cVar1 = name[4];\n  }" { (labeled_statement "LAB_00056b1c:\n    cVar1 = name[4];" statement_identifier : (expression_statement "cVar1 = name[4];" (assignment_expression "cVar1 = name[4]" identifier = (subscript_expression "name[4]" identifier [ number_literal ])) ;)) }) (else_clause "else {\n    uVar4 = pSVar2->attributes;\n    if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }\n    if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }\n    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;\n    iVar3 = legal_number((char *)a,&num);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = name[4];\n    if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" else (compound_statement "{\n    uVar4 = pSVar2->attributes;\n    if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }\n    if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }\n    if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;\n    iVar3 = legal_number((char *)a,&num);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = name[4];\n    if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" { (expression_statement "uVar4 = pSVar2->attributes;" (assignment_expression "uVar4 = pSVar2->attributes" identifier = (field_expression "pSVar2->attributes" identifier -> field_identifier)) ;) (if_statement "if ((uVar4 & 0x800) == 0) {\n      a = (ARRAY *)pSVar2->value;\n    }\n    else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }" if (parenthesized_expression "((uVar4 & 0x800) == 0)" ( (binary_expression "(uVar4 & 0x800) == 0" (parenthesized_expression "(uVar4 & 0x800)" ( (binary_expression "uVar4 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      a = (ARRAY *)pSVar2->value;\n    }" { (expression_statement "a = (ARRAY *)pSVar2->value;" (assignment_expression "a = (ARRAY *)pSVar2->value" identifier = (cast_expression "(ARRAY *)pSVar2->value" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSVar2->value" identifier -> field_identifier))) ;) }) (else_clause "else {\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }" else (compound_statement "{\n      pSVar2 = find_variable_nameref(pSVar2);\n      if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;\n      uVar4 = pSVar2->attributes;\n      a = (ARRAY *)pSVar2->value;\n    }" { (expression_statement "pSVar2 = find_variable_nameref(pSVar2);" (assignment_expression "pSVar2 = find_variable_nameref(pSVar2)" identifier = (call_expression "find_variable_nameref(pSVar2)" identifier (argument_list "(pSVar2)" ( identifier )))) ;) (if_statement "if (pSVar2 == (SHELL_VAR *)0x0) goto LAB_00056b1c;" if (parenthesized_expression "(pSVar2 == (SHELL_VAR *)0x0)" ( (binary_expression "pSVar2 == (SHELL_VAR *)0x0" identifier == (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00056b1c;" goto statement_identifier ;)) (expression_statement "uVar4 = pSVar2->attributes;" (assignment_expression "uVar4 = pSVar2->attributes" identifier = (field_expression "pSVar2->attributes" identifier -> field_identifier)) ;) (expression_statement "a = (ARRAY *)pSVar2->value;" (assignment_expression "a = (ARRAY *)pSVar2->value" identifier = (cast_expression "(ARRAY *)pSVar2->value" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSVar2->value" identifier -> field_identifier))) ;) }))) (if_statement "if ((uVar4 & 4) == 0) {\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }\n    else {\n      a = (ARRAY *)array_reference(a,0);\n    }" if (parenthesized_expression "((uVar4 & 4) == 0)" ( (binary_expression "(uVar4 & 4) == 0" (parenthesized_expression "(uVar4 & 4)" ( (binary_expression "uVar4 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }\n    }" { (if_statement "if ((uVar4 & 0x40) != 0) {\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }" if (parenthesized_expression "((uVar4 & 0x40) != 0)" ( (binary_expression "(uVar4 & 0x40) != 0" (parenthesized_expression "(uVar4 & 0x40)" ( (binary_expression "uVar4 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");\n      }" { (expression_statement "a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0");" (assignment_expression "a = (ARRAY *)assoc_reference((HASH_TABLE *)a,"0")" identifier = (cast_expression "(ARRAY *)assoc_reference((HASH_TABLE *)a,"0")" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "assoc_reference((HASH_TABLE *)a,"0")" identifier (argument_list "((HASH_TABLE *)a,"0")" ( (cast_expression "(HASH_TABLE *)a" ( (type_descriptor "HASH_TABLE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""0"" " string_content ") ))))) ;) })) }) (else_clause "else {\n      a = (ARRAY *)array_reference(a,0);\n    }" else (compound_statement "{\n      a = (ARRAY *)array_reference(a,0);\n    }" { (expression_statement "a = (ARRAY *)array_reference(a,0);" (assignment_expression "a = (ARRAY *)array_reference(a,0)" identifier = (cast_expression "(ARRAY *)array_reference(a,0)" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "array_reference(a,0)" identifier (argument_list "(a,0)" ( identifier , number_literal ))))) ;) }))) (if_statement "if ((a == (ARRAY *)0x0) || ((char)a->type == array_indexed)) goto LAB_00056b1c;" if (parenthesized_expression "((a == (ARRAY *)0x0) || ((char)a->type == array_indexed))" ( (binary_expression "(a == (ARRAY *)0x0) || ((char)a->type == array_indexed)" (parenthesized_expression "(a == (ARRAY *)0x0)" ( (binary_expression "a == (ARRAY *)0x0" identifier == (cast_expression "(ARRAY *)0x0" ( (type_descriptor "ARRAY *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((char)a->type == array_indexed)" ( (binary_expression "(char)a->type == array_indexed" (cast_expression "(char)a->type" ( (type_descriptor "char" primitive_type) ) (field_expression "a->type" identifier -> field_identifier)) == identifier) ))) )) (goto_statement "goto LAB_00056b1c;" goto statement_identifier ;)) (expression_statement "iVar3 = legal_number((char *)a,&num);" (assignment_expression "iVar3 = legal_number((char *)a,&num)" identifier = (call_expression "legal_number((char *)a,&num)" identifier (argument_list "((char *)a,&num)" ( (cast_expression "(char *)a" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&num" & identifier) )))) ;) (if_statement "if (iVar3 == 0) goto LAB_00056b26;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00056b26;" goto statement_identifier ;)) (expression_statement "cVar1 = name[4];" (assignment_expression "cVar1 = name[4]" identifier = (subscript_expression "name[4]" identifier [ number_literal ])) ;) (if_statement "if (-1 < (int)num) {\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }" if (parenthesized_expression "(-1 < (int)num)" ( (binary_expression "-1 < (int)num" number_literal < (cast_expression "(int)num" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }\n      goto LAB_00056b26;\n    }" { (if_statement "if (cVar1 == 'S') {\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }" if (parenthesized_expression "(cVar1 == 'S')" ( (binary_expression "cVar1 == 'S'" identifier == (char_literal "'S'" ' character ')) )) (compound_statement "{\n        stifle_history((int)num);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }" { (expression_statement "stifle_history((int)num);" (call_expression "stifle_history((int)num)" identifier (argument_list "((int)num)" ( (cast_expression "(int)num" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (expression_statement "iVar3 = where_history();" (assignment_expression "iVar3 = where_history()" identifier = (call_expression "where_history()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }" if (parenthesized_expression "(iVar3 < history_lines_this_session)" ( (binary_expression "iVar3 < history_lines_this_session" identifier < identifier) )) (compound_statement "{\n          history_lines_this_session = iVar3;\n        }" { (expression_statement "history_lines_this_session = iVar3;" (assignment_expression "history_lines_this_session = iVar3" identifier = identifier) ;) })) }) (else_clause "else {\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }" else (compound_statement "{\n        fname = get_string_value("HISTFILE");\n        history_truncate_file(fname,(int)num);\n        if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }\n      }" { (expression_statement "fname = get_string_value("HISTFILE");" (assignment_expression "fname = get_string_value("HISTFILE")" identifier = (call_expression "get_string_value("HISTFILE")" identifier (argument_list "("HISTFILE")" ( (string_literal ""HISTFILE"" " string_content ") )))) ;) (expression_statement "history_truncate_file(fname,(int)num);" (call_expression "history_truncate_file(fname,(int)num)" identifier (argument_list "(fname,(int)num)" ( identifier , (cast_expression "(int)num" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (if_statement "if ((int)num < history_lines_in_file) {\n          history_lines_in_file = (int)num;\n        }" if (parenthesized_expression "((int)num < history_lines_in_file)" ( (binary_expression "(int)num < history_lines_in_file" (cast_expression "(int)num" ( (type_descriptor "int" primitive_type) ) identifier) < identifier) )) (compound_statement "{\n          history_lines_in_file = (int)num;\n        }" { (expression_statement "history_lines_in_file = (int)num;" (assignment_expression "history_lines_in_file = (int)num" identifier = (cast_expression "(int)num" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) }))) (goto_statement "goto LAB_00056b26;" goto statement_identifier ;) })) }))) (if_statement "if (cVar1 == 'S') {\n    unstifle_history();\n  }" if (parenthesized_expression "(cVar1 == 'S')" ( (binary_expression "cVar1 == 'S'" identifier == (char_literal "'S'" ' character ')) )) (compound_statement "{\n    unstifle_history();\n  }" { (expression_statement "unstifle_history();" (call_expression "unstifle_history()" identifier (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void sv_histsize(int param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}\n\n" (function_definition "void sv_histsize(int param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" primitive_type (function_declarator "sv_histsize(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_1c [3];" primitive_type (array_declarator "local_1c [3]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "DAT_00177d48 = 0;" (assignment_expression "DAT_00177d48 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = FUN_00054870();" (assignment_expression "iVar3 = FUN_00054870()" identifier = (call_expression "FUN_00054870()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }" { (labeled_statement "LAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);" statement_identifier : (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" identifier = (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;)) }) (else_clause "else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" else (compound_statement "{\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" { (expression_statement "uVar2 = *(uint *)(iVar3 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" if (parenthesized_expression "((uVar2 & 0x800) == 0)" ( (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" ( (binary_expression "uVar2 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" { (expression_statement "pcVar5 = *(char **)(iVar3 + 4);" (assignment_expression "pcVar5 = *(char **)(iVar3 + 4)" identifier = (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" else (compound_statement "{\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" { (expression_statement "iVar3 = find_variable_nameref(iVar3);" (assignment_expression "iVar3 = find_variable_nameref(iVar3)" identifier = (call_expression "find_variable_nameref(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_00056b1c;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00056b1c;" goto statement_identifier ;)) (expression_statement "uVar2 = *(uint *)(iVar3 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 0x14)" identifier = (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = *(char **)(iVar3 + 4);" (assignment_expression "pcVar5 = *(char **)(iVar3 + 4)" identifier = (pointer_expression "*(char **)(iVar3 + 4)" * (cast_expression "(char **)(iVar3 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" if (parenthesized_expression "((uVar2 & 4) == 0)" ( (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" ( (binary_expression "uVar2 & 4" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }" { (if_statement "if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }" if (parenthesized_expression "((uVar2 & 0x40) != 0)" ( (binary_expression "(uVar2 & 0x40) != 0" (parenthesized_expression "(uVar2 & 0x40)" ( (binary_expression "uVar2 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }" { (expression_statement "pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);" (assignment_expression "pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2)" identifier = (cast_expression "(char *)assoc_reference(pcVar5,&DAT_00125fc2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "assoc_reference(pcVar5,&DAT_00125fc2)" identifier (argument_list "(pcVar5,&DAT_00125fc2)" ( identifier , (pointer_expression "&DAT_00125fc2" & identifier) ))))) ;) })) }) (else_clause "else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" else (compound_statement "{\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" { (expression_statement "pcVar5 = (char *)array_reference(pcVar5,0,0);" (assignment_expression "pcVar5 = (char *)array_reference(pcVar5,0,0)" identifier = (cast_expression "(char *)array_reference(pcVar5,0,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "array_reference(pcVar5,0,0)" identifier (argument_list "(pcVar5,0,0)" ( identifier , number_literal , number_literal ))))) ;) }))) (if_statement "if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;" if (parenthesized_expression "((pcVar5 == (char *)0x0) || (*pcVar5 == '\0'))" ( (binary_expression "(pcVar5 == (char *)0x0) || (*pcVar5 == '\0')" (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*pcVar5 == '\0')" ( (binary_expression "*pcVar5 == '\0'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_00056b1c;" goto statement_identifier ;)) (expression_statement "iVar3 = legal_number(pcVar5,local_1c);" (assignment_expression "iVar3 = legal_number(pcVar5,local_1c)" identifier = (call_expression "legal_number(pcVar5,local_1c)" identifier (argument_list "(pcVar5,local_1c)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) goto LAB_00056b26;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00056b26;" goto statement_identifier ;)) (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" identifier = (pointer_expression "*(char *)(param_1 + 4)" * (cast_expression "(char *)(param_1 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }" if (parenthesized_expression "(-1 < local_1c[0])" ( (binary_expression "-1 < local_1c[0]" number_literal < (subscript_expression "local_1c[0]" identifier [ number_literal ])) )) (compound_statement "{\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }" { (if_statement "if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" if (parenthesized_expression "(cVar1 == 'S')" ( (binary_expression "cVar1 == 'S'" identifier == (char_literal "'S'" ' character ')) )) (compound_statement "{\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }" { (expression_statement "stifle_history(local_1c[0]);" (call_expression "stifle_history(local_1c[0])" identifier (argument_list "(local_1c[0])" ( (subscript_expression "local_1c[0]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar3 = where_history();" (assignment_expression "iVar3 = where_history()" identifier = (call_expression "where_history()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }" if (parenthesized_expression "(iVar3 < history_lines_this_session)" ( (binary_expression "iVar3 < history_lines_this_session" identifier < identifier) )) (compound_statement "{\n          history_lines_this_session = iVar3;\n        }" { (expression_statement "history_lines_this_session = iVar3;" (assignment_expression "history_lines_this_session = iVar3" identifier = identifier) ;) })) }) (else_clause "else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" else (compound_statement "{\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" { (expression_statement "uVar4 = get_string_value("HISTFILE");" (assignment_expression "uVar4 = get_string_value("HISTFILE")" identifier = (call_expression "get_string_value("HISTFILE")" identifier (argument_list "("HISTFILE")" ( (string_literal ""HISTFILE"" " string_content ") )))) ;) (expression_statement "history_truncate_file(uVar4,local_1c[0]);" (call_expression "history_truncate_file(uVar4,local_1c[0])" identifier (argument_list "(uVar4,local_1c[0])" ( identifier , (subscript_expression "local_1c[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }" if (parenthesized_expression "(local_1c[0] < history_lines_in_file)" ( (binary_expression "local_1c[0] < history_lines_in_file" (subscript_expression "local_1c[0]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n          history_lines_in_file = local_1c[0];\n        }" { (expression_statement "history_lines_in_file = local_1c[0];" (assignment_expression "history_lines_in_file = local_1c[0]" identifier = (subscript_expression "local_1c[0]" identifier [ number_literal ])) ;) })) }))) (goto_statement "goto LAB_00056b26;" goto statement_identifier ;) })) }))) (if_statement "if (cVar1 == 'S') {\n    unstifle_history();\n  }" if (parenthesized_expression "(cVar1 == 'S')" ( (binary_expression "cVar1 == 'S'" identifier == (char_literal "'S'" ' character ')) )) (compound_statement "{\n    unstifle_history();\n  }" { (expression_statement "unstifle_history();" (call_expression "unstifle_history()" identifier (argument_list "()" ( ))) ;) })) (labeled_statement "LAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" statement_identifier : (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) }))) (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))))) ;) }))) (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 ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) }))) (goto_statement goto statement_identifier ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void sv_histsize(int param_1)\n\n{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" (primitive_type "void") (function_declarator "sv_histsize(int param_1)" (identifier "sv_histsize") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int in_GS_OFFSET;\n  int local_1c [3];\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  DAT_00177d48 = 0;\n  iVar3 = FUN_00054870();\n  if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }\n  if (cVar1 == 'S') {\n    unstifle_history();\n  }\nLAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_0010f8b0();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_1c [3];" (primitive_type "int") (array_declarator "local_1c [3]" (identifier "local_1c") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "DAT_00177d48 = 0;" (assignment_expression "DAT_00177d48 = 0" (identifier "DAT_00177d48") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = FUN_00054870();" (assignment_expression "iVar3 = FUN_00054870()" (identifier "iVar3") (= "=") (call_expression "FUN_00054870()" (identifier "FUN_00054870") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }\n  else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);\n  }" ({ "{") (labeled_statement "LAB_00056b1c:\n    cVar1 = *(char *)(param_1 + 4);" (statement_identifier "LAB_00056b1c") (: ":") (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";"))) (} "}")) (else_clause "else {\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = *(uint *)(iVar3 + 0x14);\n    if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }\n    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;\n    iVar3 = legal_number(pcVar5,local_1c);\n    if (iVar3 == 0) goto LAB_00056b26;\n    cVar1 = *(char *)(param_1 + 4);\n    if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }\n  }" ({ "{") (expression_statement "uVar2 = *(uint *)(iVar3 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 0x14)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((uVar2 & 0x800) == 0) {\n      pcVar5 = *(char **)(iVar3 + 4);\n    }\n    else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" (if "if") (parenthesized_expression "((uVar2 & 0x800) == 0)" (( "(") (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" (( "(") (binary_expression "uVar2 & 0x800" (identifier "uVar2") (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" ({ "{") (expression_statement "pcVar5 = *(char **)(iVar3 + 4);" (assignment_expression "pcVar5 = *(char **)(iVar3 + 4)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(iVar3 + 4)" (* "*") (cast_expression "(char **)(iVar3 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" (else "else") (compound_statement "{\n      iVar3 = find_variable_nameref(iVar3);\n      if (iVar3 == 0) goto LAB_00056b1c;\n      uVar2 = *(uint *)(iVar3 + 0x14);\n      pcVar5 = *(char **)(iVar3 + 4);\n    }" ({ "{") (expression_statement "iVar3 = find_variable_nameref(iVar3);" (assignment_expression "iVar3 = find_variable_nameref(iVar3)" (identifier "iVar3") (= "=") (call_expression "find_variable_nameref(iVar3)" (identifier "find_variable_nameref") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_00056b1c;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00056b1c;" (goto "goto") (statement_identifier "LAB_00056b1c") (; ";"))) (expression_statement "uVar2 = *(uint *)(iVar3 + 0x14);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 0x14)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "pcVar5 = *(char **)(iVar3 + 4);" (assignment_expression "pcVar5 = *(char **)(iVar3 + 4)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(iVar3 + 4)" (* "*") (cast_expression "(char **)(iVar3 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (if_statement "if ((uVar2 & 4) == 0) {\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }\n    else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" (if "if") (parenthesized_expression "((uVar2 & 4) == 0)" (( "(") (binary_expression "(uVar2 & 4) == 0" (parenthesized_expression "(uVar2 & 4)" (( "(") (binary_expression "uVar2 & 4" (identifier "uVar2") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }\n    }" ({ "{") (if_statement "if ((uVar2 & 0x40) != 0) {\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }" (if "if") (parenthesized_expression "((uVar2 & 0x40) != 0)" (( "(") (binary_expression "(uVar2 & 0x40) != 0" (parenthesized_expression "(uVar2 & 0x40)" (( "(") (binary_expression "uVar2 & 0x40" (identifier "uVar2") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);\n      }" ({ "{") (expression_statement "pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);" (assignment_expression "pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2)" (identifier "pcVar5") (= "=") (cast_expression "(char *)assoc_reference(pcVar5,&DAT_00125fc2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "assoc_reference(pcVar5,&DAT_00125fc2)" (identifier "assoc_reference") (argument_list "(pcVar5,&DAT_00125fc2)" (( "(") (identifier "pcVar5") (, ",") (pointer_expression "&DAT_00125fc2" (& "&") (identifier "DAT_00125fc2")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" (else "else") (compound_statement "{\n      pcVar5 = (char *)array_reference(pcVar5,0,0);\n    }" ({ "{") (expression_statement "pcVar5 = (char *)array_reference(pcVar5,0,0);" (assignment_expression "pcVar5 = (char *)array_reference(pcVar5,0,0)" (identifier "pcVar5") (= "=") (cast_expression "(char *)array_reference(pcVar5,0,0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "array_reference(pcVar5,0,0)" (identifier "array_reference") (argument_list "(pcVar5,0,0)" (( "(") (identifier "pcVar5") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))))) (; ";")) (} "}")))) (if_statement "if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;" (if "if") (parenthesized_expression "((pcVar5 == (char *)0x0) || (*pcVar5 == '\0'))" (( "(") (binary_expression "(pcVar5 == (char *)0x0) || (*pcVar5 == '\0')" (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*pcVar5 == '\0')" (( "(") (binary_expression "*pcVar5 == '\0'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_00056b1c;" (goto "goto") (statement_identifier "LAB_00056b1c") (; ";"))) (expression_statement "iVar3 = legal_number(pcVar5,local_1c);" (assignment_expression "iVar3 = legal_number(pcVar5,local_1c)" (identifier "iVar3") (= "=") (call_expression "legal_number(pcVar5,local_1c)" (identifier "legal_number") (argument_list "(pcVar5,local_1c)" (( "(") (identifier "pcVar5") (, ",") (identifier "local_1c") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_00056b26;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00056b26;" (goto "goto") (statement_identifier "LAB_00056b26") (; ";"))) (expression_statement "cVar1 = *(char *)(param_1 + 4);" (assignment_expression "cVar1 = *(char *)(param_1 + 4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 4)" (* "*") (cast_expression "(char *)(param_1 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (-1 < local_1c[0]) {\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }" (if "if") (parenthesized_expression "(-1 < local_1c[0])" (( "(") (binary_expression "-1 < local_1c[0]" (number_literal "-1") (< "<") (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]"))) () ")")) (compound_statement "{\n      if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }\n      goto LAB_00056b26;\n    }" ({ "{") (if_statement "if (cVar1 == 'S') {\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }\n      else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" (if "if") (parenthesized_expression "(cVar1 == 'S')" (( "(") (binary_expression "cVar1 == 'S'" (identifier "cVar1") (== "==") (char_literal "'S'" (' "'") (character "S") (' "'"))) () ")")) (compound_statement "{\n        stifle_history(local_1c[0]);\n        iVar3 = where_history();\n        if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }\n      }" ({ "{") (expression_statement "stifle_history(local_1c[0]);" (call_expression "stifle_history(local_1c[0])" (identifier "stifle_history") (argument_list "(local_1c[0])" (( "(") (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (expression_statement "iVar3 = where_history();" (assignment_expression "iVar3 = where_history()" (identifier "iVar3") (= "=") (call_expression "where_history()" (identifier "where_history") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 < history_lines_this_session) {\n          history_lines_this_session = iVar3;\n        }" (if "if") (parenthesized_expression "(iVar3 < history_lines_this_session)" (( "(") (binary_expression "iVar3 < history_lines_this_session" (identifier "iVar3") (< "<") (identifier "history_lines_this_session")) () ")")) (compound_statement "{\n          history_lines_this_session = iVar3;\n        }" ({ "{") (expression_statement "history_lines_this_session = iVar3;" (assignment_expression "history_lines_this_session = iVar3" (identifier "history_lines_this_session") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" (else "else") (compound_statement "{\n        uVar4 = get_string_value("HISTFILE");\n        history_truncate_file(uVar4,local_1c[0]);\n        if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }\n      }" ({ "{") (expression_statement "uVar4 = get_string_value("HISTFILE");" (assignment_expression "uVar4 = get_string_value("HISTFILE")" (identifier "uVar4") (= "=") (call_expression "get_string_value("HISTFILE")" (identifier "get_string_value") (argument_list "("HISTFILE")" (( "(") (string_literal ""HISTFILE"" (" """) (string_content "HISTFILE") (" """)) () ")")))) (; ";")) (expression_statement "history_truncate_file(uVar4,local_1c[0]);" (call_expression "history_truncate_file(uVar4,local_1c[0])" (identifier "history_truncate_file") (argument_list "(uVar4,local_1c[0])" (( "(") (identifier "uVar4") (, ",") (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) () ")"))) (; ";")) (if_statement "if (local_1c[0] < history_lines_in_file) {\n          history_lines_in_file = local_1c[0];\n        }" (if "if") (parenthesized_expression "(local_1c[0] < history_lines_in_file)" (( "(") (binary_expression "local_1c[0] < history_lines_in_file" (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]")) (< "<") (identifier "history_lines_in_file")) () ")")) (compound_statement "{\n          history_lines_in_file = local_1c[0];\n        }" ({ "{") (expression_statement "history_lines_in_file = local_1c[0];" (assignment_expression "history_lines_in_file = local_1c[0]" (identifier "history_lines_in_file") (= "=") (subscript_expression "local_1c[0]" (identifier "local_1c") ([ "[") (number_literal "0") (] "]"))) (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_00056b26;" (goto "goto") (statement_identifier "LAB_00056b26") (; ";")) (} "}"))) (} "}")))) (if_statement "if (cVar1 == 'S') {\n    unstifle_history();\n  }" (if "if") (parenthesized_expression "(cVar1 == 'S')" (( "(") (binary_expression "cVar1 == 'S'" (identifier "cVar1") (== "==") (char_literal "'S'" (' "'") (character "S") (' "'"))) () ")")) (compound_statement "{\n    unstifle_history();\n  }" ({ "{") (expression_statement "unstifle_history();" (call_expression "unstifle_history()" (identifier "unstifle_history") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00056b26:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (statement_identifier "LAB_00056b26") (: ":") (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}")))) (expression_statement "FUN_0010f8b0();" (call_expression "FUN_0010f8b0()" (identifier "FUN_0010f8b0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void function_1(char *name)

{
  char var_15;
  type_1 *var_6;
  int var_14;
  char *fname;
  type_2 *var_11;
  type_3 var_7;
  int var_1;
  type_4 num;
  int var_23;
  
  var_7 = 0;
  var_23 = *(int *)(var_1 + 0x14);
  last_table_searched = (type_5 *)0x0;
  if (var_2 == 0) {
    var_7 = (type_3)(var_3 != 0 || var_4 != 0);
  }
  var_6 = var_5(name,var_7);
  if (var_6 == (type_1 *)0x0) {
LAB_00056b1c:
    var_15 = name[4];
  }
  else {
    var_7 = var_6->attributes;
    if ((var_7 & 0x800) == 0) {
      var_11 = (type_2 *)var_6->value;
    }
    else {
      var_6 = var_8(var_6);
      if (var_6 == (type_1 *)0x0) goto LAB_00056b1c;
      var_7 = var_6->attributes;
      var_11 = (type_2 *)var_6->value;
    }
    if ((var_7 & 4) == 0) {
      if ((var_7 & 0x40) != 0) {
        var_11 = (type_2 *)var_9((type_5 *)var_11,"0");
      }
    }
    else {
      var_11 = (type_2 *)var_10(var_11,0);
    }
    if ((var_11 == (type_2 *)0x0) || ((char)var_11->type == var_12)) goto LAB_00056b1c;
    var_14 = var_13((char *)var_11,&num);
    if (var_14 == 0) goto LAB_00056b26;
    var_15 = name[4];
    if (-1 < (int)num) {
      if (var_15 == 'S') {
        var_16((int)num);
        var_14 = var_17();
        if (var_14 < var_18) {
          var_18 = var_14;
        }
      }
      else {
        fname = var_19("HISTFILE");
        var_20(fname,(int)num);
        if ((int)num < var_21) {
          var_21 = (int)num;
        }
      }
      goto LAB_00056b26;
    }
  }
  if (var_15 == 'S') {
    var_22();
  }
LAB_00056b26:
  if (var_23 == *(int *)(var_1 + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_24();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_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: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_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: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (identifier) (pointer_expression argument: (identifier)))))))))) alternative: (else_clause (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 (identifier) (number_literal) (number_literal))))))))) (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: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) (goto_statement label: (statement_identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (labeled_statement label: (statement_identifier) (if_statement condition: (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: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

void MASKED(int param_1)

{
  char cVar1;
  uint uVar2;
  int iVar3;
  undefined4 uVar4;
  char *pcVar5;
  int in_GS_OFFSET;
  int local_1c [3];
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  DAT_00177d48 = 0;
  iVar3 = FUN_00054870();
  if (iVar3 == 0) {
LAB_00056b1c:
    cVar1 = *(char *)(param_1 + 4);
  }
  else {
    uVar2 = *(uint *)(iVar3 + 0x14);
    if ((uVar2 & 0x800) == 0) {
      pcVar5 = *(char **)(iVar3 + 4);
    }
    else {
      iVar3 = find_variable_nameref(iVar3);
      if (iVar3 == 0) goto LAB_00056b1c;
      uVar2 = *(uint *)(iVar3 + 0x14);
      pcVar5 = *(char **)(iVar3 + 4);
    }
    if ((uVar2 & 4) == 0) {
      if ((uVar2 & 0x40) != 0) {
        pcVar5 = (char *)assoc_reference(pcVar5,&DAT_00125fc2);
      }
    }
    else {
      pcVar5 = (char *)array_reference(pcVar5,0,0);
    }
    if ((pcVar5 == (char *)0x0) || (*pcVar5 == '\0')) goto LAB_00056b1c;
    iVar3 = legal_number(pcVar5,local_1c);
    if (iVar3 == 0) goto LAB_00056b26;
    cVar1 = *(char *)(param_1 + 4);
    if (-1 < local_1c[0]) {
      if (cVar1 == 'S') {
        stifle_history(local_1c[0]);
        iVar3 = where_history();
        if (iVar3 < history_lines_this_session) {
          history_lines_this_session = iVar3;
        }
      }
      else {
        uVar4 = get_string_value("HISTFILE");
        history_truncate_file(uVar4,local_1c[0]);
        if (local_1c[0] < history_lines_in_file) {
          history_lines_in_file = local_1c[0];
        }
      }
      goto LAB_00056b26;
    }
  }
  if (cVar1 == 'S') {
    unstifle_history();
  }
LAB_00056b26:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0010f8b0();
}

