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

int __regparm3 toggle_shopts(int mode,WORD_LIST *list,int quiet)

{
  shopt_set_func_t *psVar1;
  char *name;
  int iVar2;
  SHELL_VAR *pSVar3;
  int local_20;
  
  if (list == (WORD_LIST *)0x0) {
    local_20 = 0;
  }
  else {
    local_20 = 0;
    do {
      while( true ) {
        name = list->word->word;
        iVar2 = find_shopt(name);
        if (-1 < iVar2) break;
        shopt_error(name);
        list = list->next;
        local_20 = 1;
        if (list == (word_list *)0x0) goto LAB_000af80c;
      }
      psVar1 = shopt_vars[iVar2].set_func;
      *shopt_vars[iVar2].value = mode;
      if (psVar1 != (shopt_set_func_t *)0x0) {
        (*psVar1)(shopt_vars[iVar2].name,mode);
      }
      list = list->next;
    } while (list != (word_list *)0x0);
  }
LAB_000af80c:
  pSVar3 = find_variable("BASHOPTS");
  if (pSVar3 != (SHELL_VAR *)0x0) {
    set_bashopts();
  }
  return local_20;
}



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

undefined4 __regparm3 FUN_000af780(undefined4 param_1,int *param_2)

{
  code *pcVar1;
  int iVar2;
  undefined4 local_20;
  
  if (param_2 == (int *)0x0) {
    local_20 = 0;
  }
  else {
    local_20 = 0;
    do {
      while( true ) {
        iVar2 = FUN_000aeea0();
        if (-1 < iVar2) break;
        FUN_000aed50();
        param_2 = (int *)*param_2;
        local_20 = 1;
        if (param_2 == (int *)0x0) goto LAB_000af80c;
      }
      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);
      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;
      if (pcVar1 != (code *)0x0) {
        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);
      }
      param_2 = (int *)*param_2;
    } while (param_2 != (int *)0x0);
  }
LAB_000af80c:
  iVar2 = find_variable("BASHOPTS");
  if (iVar2 != 0) {
    set_bashopts();
  }
  return local_20;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x9a877
SUB ESP,0x1c
TEST EDX,EDX
JZ 0x000af838
MOV EDI,EAX
LEA EAX,[EBX + 0xfffff3c0]
MOV ESI,EDX
MOV dword ptr [ESP + 0xc],0x0
MOV dword ptr [ESP + 0x8],EAX
JMP 0x000af7e7
LEA EAX,[EAX + EAX*0x2]
SHL EAX,0x2
LEA EDX,[EBX + EAX*0x1 + 0xfffff3c0]
MOV ECX,dword ptr [EDX + 0x4]
MOV EDX,dword ptr [EDX + 0x8]
MOV dword ptr [ECX],EDI
TEST EDX,EDX
JZ 0x000af7e1
SUB ESP,0x8
PUSH EDI
MOV ECX,dword ptr [ESP + 0x14]
PUSH dword ptr [ECX + EAX*0x1]
CALL EDX
ADD ESP,0x10
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x000af80c
MOV EAX,dword ptr [ESI + 0x4]
MOV EBP,dword ptr [EAX]
MOV EAX,EBP
CALL 0x000aeea0
TEST EAX,EAX
JNS 0x000af7b8
MOV EAX,EBP
CALL 0x000aed50
MOV ESI,dword ptr [ESI]
MOV dword ptr [ESP + 0xc],0x1
TEST ESI,ESI
JNZ 0x000af7e7
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb89ea]
PUSH EAX
CALL 0x00051fa0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000af827
CALL 0x000af590
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0xc],0x0
JMP 0x000af80c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000af780(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000af780(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000af780(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (if_statement "if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20 = 0;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" else (compound_statement "{\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);" do (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }" { (expression_statement "iVar2 = FUN_000aeea0();" (assignment_expression "iVar2 = FUN_000aeea0()" identifier = (call_expression "FUN_000aeea0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar2) break;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "FUN_000aed50();" (call_expression "FUN_000aed50()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (if_statement "if (param_2 == (int *)0x0) goto LAB_000af80c;" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af80c;" goto statement_identifier ;)) })) (expression_statement "pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);" (assignment_expression "pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc)" identifier = (pointer_expression "*(code **)(&DAT_001493c8 + iVar2 * 0xc)" * (cast_expression "(code **)(&DAT_001493c8 + iVar2 * 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_001493c8 + iVar2 * 0xc)" ( (binary_expression "&DAT_001493c8 + iVar2 * 0xc" (pointer_expression "&DAT_001493c8" & identifier) + (binary_expression "iVar2 * 0xc" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;" (assignment_expression "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1" (pointer_expression "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3]" * (cast_expression "(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&PTR_autocd_001493c4)[iVar2 * 3]" (parenthesized_expression "(&PTR_autocd_001493c4)" ( (pointer_expression "&PTR_autocd_001493c4" & identifier) )) [ (binary_expression "iVar2 * 3" identifier * number_literal) ]))) = identifier) ;) (if_statement "if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }" if (parenthesized_expression "(pcVar1 != (code *)0x0)" ( (binary_expression "pcVar1 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }" { (expression_statement "(*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);" (call_expression "(*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "((&PTR_DAT_001493c0)[iVar2 * 3],param_1)" ( (subscript_expression "(&PTR_DAT_001493c0)[iVar2 * 3]" (parenthesized_expression "(&PTR_DAT_001493c0)" ( (pointer_expression "&PTR_DAT_001493c0" & identifier) )) [ (binary_expression "iVar2 * 3" identifier * number_literal) ]) , identifier ))) ;) })) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }) while (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (labeled_statement "LAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");" statement_identifier : (expression_statement "iVar2 = find_variable("BASHOPTS");" (assignment_expression "iVar2 = find_variable("BASHOPTS")" identifier = (call_expression "find_variable("BASHOPTS")" identifier (argument_list "("BASHOPTS")" ( (string_literal ""BASHOPTS"" " string_content ") )))) ;)) (if_statement "if (iVar2 != 0) {\n    set_bashopts();\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    set_bashopts();\n  }" { (expression_statement "set_bashopts();" (call_expression "set_bashopts()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 toggle_shopts(int mode,WORD_LIST *list,int quiet)\n\n{\n  shopt_set_func_t *psVar1;\n  char *name;\n  int iVar2;\n  SHELL_VAR *pSVar3;\n  int local_20;\n  \n  if (list == (WORD_LIST *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);\n  }\nLAB_000af80c:\n  pSVar3 = find_variable("BASHOPTS");\n  if (pSVar3 != (SHELL_VAR *)0x0) {\n    set_bashopts();\n  }\n  return local_20;\n}\n\n" comment (function_definition "int __regparm3 toggle_shopts(int mode,WORD_LIST *list,int quiet)\n\n{\n  shopt_set_func_t *psVar1;\n  char *name;\n  int iVar2;\n  SHELL_VAR *pSVar3;\n  int local_20;\n  \n  if (list == (WORD_LIST *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);\n  }\nLAB_000af80c:\n  pSVar3 = find_variable("BASHOPTS");\n  if (pSVar3 != (SHELL_VAR *)0x0) {\n    set_bashopts();\n  }\n  return local_20;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "toggle_shopts(int mode,WORD_LIST *list,int quiet)" identifier (parameter_list "(int mode,WORD_LIST *list,int quiet)" ( (parameter_declaration "int mode" primitive_type identifier) , (parameter_declaration "WORD_LIST *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "int quiet" primitive_type identifier) ))) (compound_statement "{\n  shopt_set_func_t *psVar1;\n  char *name;\n  int iVar2;\n  SHELL_VAR *pSVar3;\n  int local_20;\n  \n  if (list == (WORD_LIST *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);\n  }\nLAB_000af80c:\n  pSVar3 = find_variable("BASHOPTS");\n  if (pSVar3 != (SHELL_VAR *)0x0) {\n    set_bashopts();\n  }\n  return local_20;\n}" { (declaration "shopt_set_func_t *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "SHELL_VAR *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (list == (WORD_LIST *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);\n  }" if (parenthesized_expression "(list == (WORD_LIST *)0x0)" ( (binary_expression "list == (WORD_LIST *)0x0" identifier == (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20 = 0;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);\n  }" else (compound_statement "{\n    local_20 = 0;\n    do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    } while (list != (word_list *)0x0);" do (compound_statement "{\n      while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }\n      psVar1 = shopt_vars[iVar2].set_func;\n      *shopt_vars[iVar2].value = mode;\n      if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }\n      list = list->next;\n    }" { (while_statement "while( true ) {\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        name = list->word->word;\n        iVar2 = find_shopt(name);\n        if (-1 < iVar2) break;\n        shopt_error(name);\n        list = list->next;\n        local_20 = 1;\n        if (list == (word_list *)0x0) goto LAB_000af80c;\n      }" { (expression_statement "name = list->word->word;" (assignment_expression "name = list->word->word" identifier = (field_expression "list->word->word" (field_expression "list->word" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar2 = find_shopt(name);" (assignment_expression "iVar2 = find_shopt(name)" identifier = (call_expression "find_shopt(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) break;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "shopt_error(name);" (call_expression "shopt_error(name)" identifier (argument_list "(name)" ( identifier ))) ;) (expression_statement "list = list->next;" (assignment_expression "list = list->next" identifier = (field_expression "list->next" identifier -> field_identifier)) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (if_statement "if (list == (word_list *)0x0) goto LAB_000af80c;" if (parenthesized_expression "(list == (word_list *)0x0)" ( (binary_expression "list == (word_list *)0x0" identifier == (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af80c;" goto statement_identifier ;)) })) (expression_statement "psVar1 = shopt_vars[iVar2].set_func;" (assignment_expression "psVar1 = shopt_vars[iVar2].set_func" identifier = (field_expression "shopt_vars[iVar2].set_func" (subscript_expression "shopt_vars[iVar2]" identifier [ identifier ]) . field_identifier)) ;) (expression_statement "*shopt_vars[iVar2].value = mode;" (assignment_expression "*shopt_vars[iVar2].value = mode" (pointer_expression "*shopt_vars[iVar2].value" * (field_expression "shopt_vars[iVar2].value" (subscript_expression "shopt_vars[iVar2]" identifier [ identifier ]) . field_identifier)) = identifier) ;) (if_statement "if (psVar1 != (shopt_set_func_t *)0x0) {\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }" if (parenthesized_expression "(psVar1 != (shopt_set_func_t *)0x0)" ( (binary_expression "psVar1 != (shopt_set_func_t *)0x0" identifier != (cast_expression "(shopt_set_func_t *)0x0" ( (type_descriptor "shopt_set_func_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*psVar1)(shopt_vars[iVar2].name,mode);\n      }" { (expression_statement "(*psVar1)(shopt_vars[iVar2].name,mode);" (call_expression "(*psVar1)(shopt_vars[iVar2].name,mode)" (parenthesized_expression "(*psVar1)" ( (pointer_expression "*psVar1" * identifier) )) (argument_list "(shopt_vars[iVar2].name,mode)" ( (field_expression "shopt_vars[iVar2].name" (subscript_expression "shopt_vars[iVar2]" identifier [ identifier ]) . field_identifier) , identifier ))) ;) })) (expression_statement "list = list->next;" (assignment_expression "list = list->next" identifier = (field_expression "list->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(list != (word_list *)0x0)" ( (binary_expression "list != (word_list *)0x0" identifier != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (labeled_statement "LAB_000af80c:\n  pSVar3 = find_variable("BASHOPTS");" statement_identifier : (expression_statement "pSVar3 = find_variable("BASHOPTS");" (assignment_expression "pSVar3 = find_variable("BASHOPTS")" identifier = (call_expression "find_variable("BASHOPTS")" identifier (argument_list "("BASHOPTS")" ( (string_literal ""BASHOPTS"" " string_content ") )))) ;)) (if_statement "if (pSVar3 != (SHELL_VAR *)0x0) {\n    set_bashopts();\n  }" if (parenthesized_expression "(pSVar3 != (SHELL_VAR *)0x0)" ( (binary_expression "pSVar3 != (SHELL_VAR *)0x0" identifier != (cast_expression "(SHELL_VAR *)0x0" ( (type_descriptor "SHELL_VAR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    set_bashopts();\n  }" { (expression_statement "set_bashopts();" (call_expression "set_bashopts()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit "undefined4 __regparm3 FUN_000af780(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000af780(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000af780(undefined4 param_1,int *param_2)" identifier (parameter_list "(undefined4 param_1,int *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (if_statement "if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20 = 0;\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" else (compound_statement "{\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" { (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);" do (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    }" { (while_statement "while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }" { (expression_statement "iVar2 = FUN_000aeea0();" (assignment_expression "iVar2 = FUN_000aeea0()" identifier = (call_expression "FUN_000aeea0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < iVar2) break;" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (break_statement "break;" break ;)) (expression_statement "FUN_000aed50();" (call_expression "FUN_000aed50()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (if_statement "if (param_2 == (int *)0x0) goto LAB_000af80c;" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000af80c;" goto statement_identifier ;)) })) (expression_statement "pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);" (assignment_expression "pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc)" identifier = (pointer_expression "*(code **)(&DAT_001493c8 + iVar2 * 0xc)" * (cast_expression "(code **)(&DAT_001493c8 + iVar2 * 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&DAT_001493c8 + iVar2 * 0xc)" ( (binary_expression "&DAT_001493c8 + iVar2 * 0xc" (pointer_expression "&DAT_001493c8" & identifier) + (binary_expression "iVar2 * 0xc" identifier * number_literal)) ))))) ;) (expression_statement "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;" (assignment_expression "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1" (pointer_expression "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3]" * (cast_expression "(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(&PTR_autocd_001493c4)[iVar2 * 3]" (parenthesized_expression "(&PTR_autocd_001493c4)" ( (pointer_expression "&PTR_autocd_001493c4" & identifier) )) [ (binary_expression "iVar2 * 3" identifier * number_literal) ]))) = identifier) ;) (if_statement "if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }" if (parenthesized_expression "(pcVar1 != (code *)0x0)" ( (binary_expression "pcVar1 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }" { (expression_statement "(*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);" (call_expression "(*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "((&PTR_DAT_001493c0)[iVar2 * 3],param_1)" ( (subscript_expression "(&PTR_DAT_001493c0)[iVar2 * 3]" (parenthesized_expression "(&PTR_DAT_001493c0)" ( (pointer_expression "&PTR_DAT_001493c0" & identifier) )) [ (binary_expression "iVar2 * 3" identifier * number_literal) ]) , identifier ))) ;) })) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) }) while (parenthesized_expression "(param_2 != (int *)0x0)" ( (binary_expression "param_2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (labeled_statement "LAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");" statement_identifier : (expression_statement "iVar2 = find_variable("BASHOPTS");" (assignment_expression "iVar2 = find_variable("BASHOPTS")" identifier = (call_expression "find_variable("BASHOPTS")" identifier (argument_list "("BASHOPTS")" ( (string_literal ""BASHOPTS"" " string_content ") )))) ;)) (if_statement "if (iVar2 != 0) {\n    set_bashopts();\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    set_bashopts();\n  }" { (expression_statement "set_bashopts();" (call_expression "set_bashopts()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_20;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT * LIT) ]) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (labeled_statement statement_identifier : (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm3 FUN_000af780(undefined4 param_1,int *param_2)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000af780(undefined4 param_1,int *param_2)" (identifier "FUN_000af780") (parameter_list "(undefined4 param_1,int *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  undefined4 local_20;\n  \n  if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }\nLAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");\n  if (iVar2 != 0) {\n    set_bashopts();\n  }\n  return local_20;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (if_statement "if (param_2 == (int *)0x0) {\n    local_20 = 0;\n  }\n  else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_20 = 0;\n  }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" (else "else") (compound_statement "{\n    local_20 = 0;\n    do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);\n  }" ({ "{") (expression_statement "local_20 = 0;" (assignment_expression "local_20 = 0" (identifier "local_20") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    } while (param_2 != (int *)0x0);" (do "do") (compound_statement "{\n      while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }\n      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);\n      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;\n      if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }\n      param_2 = (int *)*param_2;\n    }" ({ "{") (while_statement "while( true ) {\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        iVar2 = FUN_000aeea0();\n        if (-1 < iVar2) break;\n        FUN_000aed50();\n        param_2 = (int *)*param_2;\n        local_20 = 1;\n        if (param_2 == (int *)0x0) goto LAB_000af80c;\n      }" ({ "{") (expression_statement "iVar2 = FUN_000aeea0();" (assignment_expression "iVar2 = FUN_000aeea0()" (identifier "iVar2") (= "=") (call_expression "FUN_000aeea0()" (identifier "FUN_000aeea0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (-1 < iVar2) break;" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_000aed50();" (call_expression "FUN_000aed50()" (identifier "FUN_000aed50") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" (identifier "param_2") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" (identifier "local_20") (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_2 == (int *)0x0) goto LAB_000af80c;" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000af80c;" (goto "goto") (statement_identifier "LAB_000af80c") (; ";"))) (} "}"))) (expression_statement "pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);" (assignment_expression "pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(&DAT_001493c8 + iVar2 * 0xc)" (* "*") (cast_expression "(code **)(&DAT_001493c8 + iVar2 * 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&DAT_001493c8 + iVar2 * 0xc)" (( "(") (binary_expression "&DAT_001493c8 + iVar2 * 0xc" (pointer_expression "&DAT_001493c8" (& "&") (identifier "DAT_001493c8")) (+ "+") (binary_expression "iVar2 * 0xc" (identifier "iVar2") (* "*") (number_literal "0xc"))) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;" (assignment_expression "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1" (pointer_expression "*(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3]" (* "*") (cast_expression "(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "(&PTR_autocd_001493c4)[iVar2 * 3]" (parenthesized_expression "(&PTR_autocd_001493c4)" (( "(") (pointer_expression "&PTR_autocd_001493c4" (& "&") (identifier "PTR_autocd_001493c4")) () ")")) ([ "[") (binary_expression "iVar2 * 3" (identifier "iVar2") (* "*") (number_literal "3")) (] "]")))) (= "=") (identifier "param_1")) (; ";")) (if_statement "if (pcVar1 != (code *)0x0) {\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }" (if "if") (parenthesized_expression "(pcVar1 != (code *)0x0)" (( "(") (binary_expression "pcVar1 != (code *)0x0" (identifier "pcVar1") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);\n      }" ({ "{") (expression_statement "(*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);" (call_expression "(*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "((&PTR_DAT_001493c0)[iVar2 * 3],param_1)" (( "(") (subscript_expression "(&PTR_DAT_001493c0)[iVar2 * 3]" (parenthesized_expression "(&PTR_DAT_001493c0)" (( "(") (pointer_expression "&PTR_DAT_001493c0" (& "&") (identifier "PTR_DAT_001493c0")) () ")")) ([ "[") (binary_expression "iVar2 * 3" (identifier "iVar2") (* "*") (number_literal "3")) (] "]")) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" (identifier "param_2") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != (int *)0x0)" (( "(") (binary_expression "param_2 != (int *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (labeled_statement "LAB_000af80c:\n  iVar2 = find_variable("BASHOPTS");" (statement_identifier "LAB_000af80c") (: ":") (expression_statement "iVar2 = find_variable("BASHOPTS");" (assignment_expression "iVar2 = find_variable("BASHOPTS")" (identifier "iVar2") (= "=") (call_expression "find_variable("BASHOPTS")" (identifier "find_variable") (argument_list "("BASHOPTS")" (( "(") (string_literal ""BASHOPTS"" (" """) (string_content "BASHOPTS") (" """)) () ")")))) (; ";"))) (if_statement "if (iVar2 != 0) {\n    set_bashopts();\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    set_bashopts();\n  }" ({ "{") (expression_statement "set_bashopts();" (call_expression "set_bashopts()" (identifier "set_bashopts") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return local_20;" (return "return") (identifier "local_20") (; ";")) (} "}")))

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

int __regparm3 function_1(int mode,type_1 *var_1,int quiet)

{
  type_2 *var_5;
  char *name;
  int var_3;
  type_3 *var_7;
  int local_20;
  
  if (var_1 == (type_1 *)0x0) {
    local_20 = 0;
  }
  else {
    local_20 = 0;
    do {
      while( true ) {
        name = var_1->word->word;
        var_3 = var_2(name);
        if (-1 < var_3) break;
        var_4(name);
        var_1 = var_1->next;
        local_20 = 1;
        if (var_1 == (type_4 *)0x0) goto LAB_000af80c;
      }
      var_5 = shopt_vars[var_3].set_func;
      *shopt_vars[var_3].value = mode;
      if (var_5 != (type_2 *)0x0) {
        (*var_5)(shopt_vars[var_3].name,mode);
      }
      var_1 = var_1->next;
    } while (var_1 != (type_4 *)0x0);
  }
LAB_000af80c:
  var_7 = var_6("BASHOPTS");
  if (var_7 != (type_3 *)0x0) {
    var_8();
  }
  return local_20;
}


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

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

undefined4 __regparm3 MASKED(undefined4 param_1,int *param_2)

{
  code *pcVar1;
  int iVar2;
  undefined4 local_20;
  
  if (param_2 == (int *)0x0) {
    local_20 = 0;
  }
  else {
    local_20 = 0;
    do {
      while( true ) {
        iVar2 = FUN_000aeea0();
        if (-1 < iVar2) break;
        FUN_000aed50();
        param_2 = (int *)*param_2;
        local_20 = 1;
        if (param_2 == (int *)0x0) goto LAB_000af80c;
      }
      pcVar1 = *(code **)(&DAT_001493c8 + iVar2 * 0xc);
      *(undefined4 *)(&PTR_autocd_001493c4)[iVar2 * 3] = param_1;
      if (pcVar1 != (code *)0x0) {
        (*pcVar1)((&PTR_DAT_001493c0)[iVar2 * 3],param_1);
      }
      param_2 = (int *)*param_2;
    } while (param_2 != (int *)0x0);
  }
LAB_000af80c:
  iVar2 = find_variable("BASHOPTS");
  if (iVar2 != 0) {
    set_bashopts();
  }
  return local_20;
}

