
void initialize_shell_options(int no_shellopts)

{
  char cVar1;
  SHELL_VAR *pSVar2;
  char *pcVar3;
  char *pcVar4;
  ulong uVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (no_shellopts == 0) {
    pSVar2 = find_variable("SHELLOPTS");
    if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&
       ((pSVar2->attributes & 0x44U) == 0)) {
      pcVar4 = pSVar2->value;
      uVar5 = 0xffffffffffffffff;
      pcVar3 = pcVar4;
      do {
        if (uVar5 == 0) break;
        uVar5 = uVar5 - 1;
        cVar1 = *pcVar3;
        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;
      } while (cVar1 != '\0');
      pcVar3 = (char *)xmalloc(~uVar5);
      pcVar4 = strcpy(pcVar3,pcVar4);
      parse_shellopts(pcVar4);
      free(pcVar4);
    }
  }
  set_shellopts();
  return;
}



void initialize_shell_options(int param_1)

{
  char cVar1;
  long lVar2;
  char *pcVar3;
  char *pcVar4;
  ulong uVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (param_1 == 0) {
    lVar2 = find_variable("SHELLOPTS");
    if (lVar2 != 0) {
      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {
        pcVar4 = *(char **)(lVar2 + 8);
        uVar5 = 0xffffffffffffffff;
        pcVar3 = pcVar4;
        do {
          if (uVar5 == 0) break;
          uVar5 = uVar5 - 1;
          cVar1 = *pcVar3;
          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;
        } while (cVar1 != '\0');
        pcVar3 = (char *)xmalloc(~uVar5);
        pcVar4 = strcpy(pcVar3,pcVar4);
        parse_shellopts(pcVar4);
        free(pcVar4);
      }
    }
  }
  set_shellopts();
  return;
}


PUSH RBX
TEST EDI,EDI
JZ 0x001972ec
CALL 0x0019708b
POP RBX
RET
LEA RDI,[0x1d3d32]
CALL 0x0014a694
TEST RAX,RAX
JZ 0x001972e5
MOV EDX,dword ptr [RAX + 0x28]
TEST DH,0x80
JZ 0x001972e5
TEST DL,0x44
JNZ 0x001972e5
MOV RBX,qword ptr [RAX + 0x8]
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,RBX
SCASB.REPNE RDI
NOT RCX
MOV RDI,RCX
CALL 0x00188151
MOV RSI,RBX
MOV RDI,RAX
CALL 0x0012d160
MOV RBX,RAX
MOV RDI,RAX
CALL 0x00197270
MOV RDI,RBX
CALL 0x0012d080
JMP 0x001972e5
(translation_unit "void initialize_shell_options(int param_1)\n\n{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}\n\n" (function_definition "void initialize_shell_options(int param_1)\n\n{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}" primitive_type (function_declarator "initialize_shell_options(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }" { (expression_statement "lVar2 = find_variable("SHELLOPTS");" (assignment_expression "lVar2 = find_variable("SHELLOPTS")" identifier = (call_expression "find_variable("SHELLOPTS")" identifier (argument_list "("SHELLOPTS")" ( (string_literal ""SHELLOPTS"" " string_content ") )))) ;) (if_statement "if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }" { (if_statement "if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }" if (parenthesized_expression "(((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0))" ( (binary_expression "((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)" (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x8000) != 0)" ( (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x8000) != 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x8000)" ( (binary_expression "*(uint *)(lVar2 + 0x28) & 0x8000" (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x44) == 0)" ( (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x44) == 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x44)" ( (binary_expression "*(uint *)(lVar2 + 0x28) & 0x44" (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }" { (expression_statement "pcVar4 = *(char **)(lVar2 + 8);" (assignment_expression "pcVar4 = *(char **)(lVar2 + 8)" identifier = (pointer_expression "*(char **)(lVar2 + 8)" * (cast_expression "(char **)(lVar2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0xffffffffffffffff;" (assignment_expression "uVar5 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (do_statement "do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');" do (compound_statement "{\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        }" { (if_statement "if (uVar5 == 0) break;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "pcVar3 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar3 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "pcVar3 = (char *)xmalloc(~uVar5);" (assignment_expression "pcVar3 = (char *)xmalloc(~uVar5)" identifier = (cast_expression "(char *)xmalloc(~uVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(~uVar5)" identifier (argument_list "(~uVar5)" ( (unary_expression "~uVar5" ~ identifier) ))))) ;) (expression_statement "pcVar4 = strcpy(pcVar3,pcVar4);" (assignment_expression "pcVar4 = strcpy(pcVar3,pcVar4)" identifier = (call_expression "strcpy(pcVar3,pcVar4)" identifier (argument_list "(pcVar3,pcVar4)" ( identifier , identifier )))) ;) (expression_statement "parse_shellopts(pcVar4);" (call_expression "parse_shellopts(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "free(pcVar4);" (call_expression "free(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) })) })) })) (expression_statement "set_shellopts();" (call_expression "set_shellopts()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void initialize_shell_options(int no_shellopts)\n\n{\n  char cVar1;\n  SHELL_VAR *pSVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (no_shellopts == 0) {\n    pSVar2 = find_variable("SHELLOPTS");\n    if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)) {\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }\n  }\n  set_shellopts();\n  return;\n}\n\n" (function_definition "void initialize_shell_options(int no_shellopts)\n\n{\n  char cVar1;\n  SHELL_VAR *pSVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (no_shellopts == 0) {\n    pSVar2 = find_variable("SHELLOPTS");\n    if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)) {\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }\n  }\n  set_shellopts();\n  return;\n}" primitive_type (function_declarator "initialize_shell_options(int no_shellopts)" identifier (parameter_list "(int no_shellopts)" ( (parameter_declaration "int no_shellopts" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  SHELL_VAR *pSVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (no_shellopts == 0) {\n    pSVar2 = find_variable("SHELLOPTS");\n    if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)) {\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }\n  }\n  set_shellopts();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "SHELL_VAR *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (no_shellopts == 0) {\n    pSVar2 = find_variable("SHELLOPTS");\n    if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)) {\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }\n  }" if (parenthesized_expression "(no_shellopts == 0)" ( (binary_expression "no_shellopts == 0" identifier == number_literal) )) (compound_statement "{\n    pSVar2 = find_variable("SHELLOPTS");\n    if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)) {\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }\n  }" { (expression_statement "pSVar2 = find_variable("SHELLOPTS");" (assignment_expression "pSVar2 = find_variable("SHELLOPTS")" identifier = (call_expression "find_variable("SHELLOPTS")" identifier (argument_list "("SHELLOPTS")" ( (string_literal ""SHELLOPTS"" " string_content ") )))) ;) (if_statement "if (((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)) {\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }" if (parenthesized_expression "(((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0))" ( (binary_expression "((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)) &&\n       ((pSVar2->attributes & 0x44U) == 0)" (parenthesized_expression "((pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0))" ( (binary_expression "(pSVar2 != (SHELL_VAR *)0x0) && ((pSVar2->attributes & 0x8000U) != 0)" (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)) )) && (parenthesized_expression "((pSVar2->attributes & 0x8000U) != 0)" ( (binary_expression "(pSVar2->attributes & 0x8000U) != 0" (parenthesized_expression "(pSVar2->attributes & 0x8000U)" ( (binary_expression "pSVar2->attributes & 0x8000U" (field_expression "pSVar2->attributes" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "((pSVar2->attributes & 0x44U) == 0)" ( (binary_expression "(pSVar2->attributes & 0x44U) == 0" (parenthesized_expression "(pSVar2->attributes & 0x44U)" ( (binary_expression "pSVar2->attributes & 0x44U" (field_expression "pSVar2->attributes" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      pcVar4 = pSVar2->value;\n      uVar5 = 0xffffffffffffffff;\n      pcVar3 = pcVar4;\n      do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');\n      pcVar3 = (char *)xmalloc(~uVar5);\n      pcVar4 = strcpy(pcVar3,pcVar4);\n      parse_shellopts(pcVar4);\n      free(pcVar4);\n    }" { (expression_statement "pcVar4 = pSVar2->value;" (assignment_expression "pcVar4 = pSVar2->value" identifier = (field_expression "pSVar2->value" identifier -> field_identifier)) ;) (expression_statement "uVar5 = 0xffffffffffffffff;" (assignment_expression "uVar5 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (do_statement "do {\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar5 == 0) break;\n        uVar5 = uVar5 - 1;\n        cVar1 = *pcVar3;\n        pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n      }" { (if_statement "if (uVar5 == 0) break;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "pcVar3 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar3 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "pcVar3 = (char *)xmalloc(~uVar5);" (assignment_expression "pcVar3 = (char *)xmalloc(~uVar5)" identifier = (cast_expression "(char *)xmalloc(~uVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(~uVar5)" identifier (argument_list "(~uVar5)" ( (unary_expression "~uVar5" ~ identifier) ))))) ;) (expression_statement "pcVar4 = strcpy(pcVar3,pcVar4);" (assignment_expression "pcVar4 = strcpy(pcVar3,pcVar4)" identifier = (call_expression "strcpy(pcVar3,pcVar4)" identifier (argument_list "(pcVar3,pcVar4)" ( identifier , identifier )))) ;) (expression_statement "parse_shellopts(pcVar4);" (call_expression "parse_shellopts(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "free(pcVar4);" (call_expression "free(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) })) })) (expression_statement "set_shellopts();" (call_expression "set_shellopts()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void initialize_shell_options(int param_1)\n\n{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}\n\n" (function_definition "void initialize_shell_options(int param_1)\n\n{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}" primitive_type (function_declarator "initialize_shell_options(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }" { (expression_statement "lVar2 = find_variable("SHELLOPTS");" (assignment_expression "lVar2 = find_variable("SHELLOPTS")" identifier = (call_expression "find_variable("SHELLOPTS")" identifier (argument_list "("SHELLOPTS")" ( (string_literal ""SHELLOPTS"" " string_content ") )))) ;) (if_statement "if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }" if (parenthesized_expression "(lVar2 != 0)" ( (binary_expression "lVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }" { (if_statement "if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }" if (parenthesized_expression "(((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0))" ( (binary_expression "((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)" (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x8000) != 0)" ( (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x8000) != 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x8000)" ( (binary_expression "*(uint *)(lVar2 + 0x28) & 0x8000" (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x44) == 0)" ( (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x44) == 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x44)" ( (binary_expression "*(uint *)(lVar2 + 0x28) & 0x44" (pointer_expression "*(uint *)(lVar2 + 0x28)" * (cast_expression "(uint *)(lVar2 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x28)" ( (binary_expression "lVar2 + 0x28" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }" { (expression_statement "pcVar4 = *(char **)(lVar2 + 8);" (assignment_expression "pcVar4 = *(char **)(lVar2 + 8)" identifier = (pointer_expression "*(char **)(lVar2 + 8)" * (cast_expression "(char **)(lVar2 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = 0xffffffffffffffff;" (assignment_expression "uVar5 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" identifier = identifier) ;) (do_statement "do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');" do (compound_statement "{\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        }" { (if_statement "if (uVar5 == 0) break;" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (expression_statement "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1" identifier = (binary_expression "pcVar3 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar3 + (ulong)bVar6 * -2" identifier + (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "pcVar3 = (char *)xmalloc(~uVar5);" (assignment_expression "pcVar3 = (char *)xmalloc(~uVar5)" identifier = (cast_expression "(char *)xmalloc(~uVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(~uVar5)" identifier (argument_list "(~uVar5)" ( (unary_expression "~uVar5" ~ identifier) ))))) ;) (expression_statement "pcVar4 = strcpy(pcVar3,pcVar4);" (assignment_expression "pcVar4 = strcpy(pcVar3,pcVar4)" identifier = (call_expression "strcpy(pcVar3,pcVar4)" identifier (argument_list "(pcVar3,pcVar4)" ( identifier , identifier )))) ;) (expression_statement "parse_shellopts(pcVar4);" (call_expression "parse_shellopts(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "free(pcVar4);" (call_expression "free(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) })) })) })) (expression_statement "set_shellopts();" (call_expression "set_shellopts()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & 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) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (unary_expression ~ IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void initialize_shell_options(int param_1)\n\n{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}" (primitive_type "void") (function_declarator "initialize_shell_options(int param_1)" (identifier "initialize_shell_options") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char cVar1;\n  long lVar2;\n  char *pcVar3;\n  char *pcVar4;\n  ulong uVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }\n  set_shellopts();\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 == 0) {\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar2 = find_variable("SHELLOPTS");\n    if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }\n  }" ({ "{") (expression_statement "lVar2 = find_variable("SHELLOPTS");" (assignment_expression "lVar2 = find_variable("SHELLOPTS")" (identifier "lVar2") (= "=") (call_expression "find_variable("SHELLOPTS")" (identifier "find_variable") (argument_list "("SHELLOPTS")" (( "(") (string_literal ""SHELLOPTS"" (" """) (string_content "SHELLOPTS") (" """)) () ")")))) (; ";")) (if_statement "if (lVar2 != 0) {\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }" (if "if") (parenthesized_expression "(lVar2 != 0)" (( "(") (binary_expression "lVar2 != 0" (identifier "lVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }\n    }" ({ "{") (if_statement "if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }" (if "if") (parenthesized_expression "(((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0))" (( "(") (binary_expression "((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)" (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x8000) != 0)" (( "(") (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x8000) != 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x8000)" (( "(") (binary_expression "*(uint *)(lVar2 + 0x28) & 0x8000" (pointer_expression "*(uint *)(lVar2 + 0x28)" (* "*") (cast_expression "(uint *)(lVar2 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "0x8000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(lVar2 + 0x28) & 0x44) == 0)" (( "(") (binary_expression "(*(uint *)(lVar2 + 0x28) & 0x44) == 0" (parenthesized_expression "(*(uint *)(lVar2 + 0x28) & 0x44)" (( "(") (binary_expression "*(uint *)(lVar2 + 0x28) & 0x44" (pointer_expression "*(uint *)(lVar2 + 0x28)" (* "*") (cast_expression "(uint *)(lVar2 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x28)" (( "(") (binary_expression "lVar2 + 0x28" (identifier "lVar2") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "0x44")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        pcVar4 = *(char **)(lVar2 + 8);\n        uVar5 = 0xffffffffffffffff;\n        pcVar3 = pcVar4;\n        do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');\n        pcVar3 = (char *)xmalloc(~uVar5);\n        pcVar4 = strcpy(pcVar3,pcVar4);\n        parse_shellopts(pcVar4);\n        free(pcVar4);\n      }" ({ "{") (expression_statement "pcVar4 = *(char **)(lVar2 + 8);" (assignment_expression "pcVar4 = *(char **)(lVar2 + 8)" (identifier "pcVar4") (= "=") (pointer_expression "*(char **)(lVar2 + 8)" (* "*") (cast_expression "(char **)(lVar2 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar5 = 0xffffffffffffffff;" (assignment_expression "uVar5 = 0xffffffffffffffff" (identifier "uVar5") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar3 = pcVar4;" (assignment_expression "pcVar3 = pcVar4" (identifier "pcVar3") (= "=") (identifier "pcVar4")) (; ";")) (do_statement "do {\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        } while (cVar1 != '\0');" (do "do") (compound_statement "{\n          if (uVar5 == 0) break;\n          uVar5 = uVar5 - 1;\n          cVar1 = *pcVar3;\n          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;\n        }" ({ "{") (if_statement "if (uVar5 == 0) break;" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar5 = uVar5 - 1;" (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar3;" (assignment_expression "cVar1 = *pcVar3" (identifier "cVar1") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (expression_statement "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;" (assignment_expression "pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + (ulong)bVar6 * -2 + 1" (binary_expression "pcVar3 + (ulong)bVar6 * -2" (identifier "pcVar3") (+ "+") (binary_expression "(ulong)bVar6 * -2" (cast_expression "(ulong)bVar6" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "pcVar3 = (char *)xmalloc(~uVar5);" (assignment_expression "pcVar3 = (char *)xmalloc(~uVar5)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xmalloc(~uVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(~uVar5)" (identifier "xmalloc") (argument_list "(~uVar5)" (( "(") (unary_expression "~uVar5" (~ "~") (identifier "uVar5")) () ")"))))) (; ";")) (expression_statement "pcVar4 = strcpy(pcVar3,pcVar4);" (assignment_expression "pcVar4 = strcpy(pcVar3,pcVar4)" (identifier "pcVar4") (= "=") (call_expression "strcpy(pcVar3,pcVar4)" (identifier "strcpy") (argument_list "(pcVar3,pcVar4)" (( "(") (identifier "pcVar3") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "parse_shellopts(pcVar4);" (call_expression "parse_shellopts(pcVar4)" (identifier "parse_shellopts") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (expression_statement "free(pcVar4);" (call_expression "free(pcVar4)" (identifier "free") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "set_shellopts();" (call_expression "set_shellopts()" (identifier "set_shellopts") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int var_1)

{
  char var_6;
  type_1 *var_3;
  char *var_5;
  char *pcVar4;
  type_2 var_4;
  type_3 bVar6;
  
  bVar6 = 0;
  if (var_1 == 0) {
    var_3 = var_2("SHELLOPTS");
    if (((var_3 != (type_1 *)0x0) && ((var_3->attributes & 0x8000U) != 0)) &&
       ((var_3->attributes & 0x44U) == 0)) {
      pcVar4 = var_3->value;
      var_4 = 0xffffffffffffffff;
      var_5 = pcVar4;
      do {
        if (var_4 == 0) break;
        var_4 = var_4 - 1;
        var_6 = *var_5;
        var_5 = var_5 + (type_2)bVar6 * -2 + 1;
      } while (var_6 != '\0');
      var_5 = (char *)var_7(~var_4);
      pcVar4 = var_8(var_5,pcVar4);
      var_9(pcVar4);
      var_10(pcVar4);
    }
  }
  var_11();
  return;
}


(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: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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))))) 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))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (unary_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(int param_1)

{
  char cVar1;
  long lVar2;
  char *pcVar3;
  char *pcVar4;
  ulong uVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (param_1 == 0) {
    lVar2 = find_variable("SHELLOPTS");
    if (lVar2 != 0) {
      if (((*(uint *)(lVar2 + 0x28) & 0x8000) != 0) && ((*(uint *)(lVar2 + 0x28) & 0x44) == 0)) {
        pcVar4 = *(char **)(lVar2 + 8);
        uVar5 = 0xffffffffffffffff;
        pcVar3 = pcVar4;
        do {
          if (uVar5 == 0) break;
          uVar5 = uVar5 - 1;
          cVar1 = *pcVar3;
          pcVar3 = pcVar3 + (ulong)bVar6 * -2 + 1;
        } while (cVar1 != '\0');
        pcVar3 = (char *)xmalloc(~uVar5);
        pcVar4 = strcpy(pcVar3,pcVar4);
        parse_shellopts(pcVar4);
        free(pcVar4);
      }
    }
  }
  set_shellopts();
  return;
}

