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

void __regparm3 print_shopt(char *name,int val,int flags)

{
  undefined *puVar1;
  char *pcVar2;
  
  if ((flags & 0x10U) != 0) {
    puVar1 = &DAT_001029c5;
    if (val == 0) {
      puVar1 = &DAT_001029c8;
    }
    __printf_chk(1,"shopt %s %s\n",puVar1,name);
    return;
  }
  pcVar2 = "on";
  if (val == 0) {
    pcVar2 = "off";
  }
  __printf_chk(1,"%-15s\t%s\n",name,pcVar2);
  return;
}



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

void __regparm3 FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)

{
  undefined *puVar1;
  char *pcVar2;
  
  if ((param_3 & 0x10) != 0) {
    puVar1 = &DAT_001029c5;
    if (param_2 == 0) {
      puVar1 = &DAT_001029c8;
    }
    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);
    return;
  }
  pcVar2 = "on";
  if (param_2 == 0) {
    pcVar2 = "off";
  }
  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);
  return;
}


PUSH EBX
CALL 0x00031ed0
ADD EBX,0x9af3a
SUB ESP,0x8
AND ECX,0x10
JZ 0x000af100
TEST EDX,EDX
LEA ECX,[EBX + 0xfffb89c8]
LEA EDX,[EBX + 0xfffb89c5]
PUSH EAX
CMOVZ EDX,ECX
LEA EAX,[EBX + 0xfffb89cb]
PUSH EDX
PUSH EAX
PUSH 0x1
CALL 0x0002f9e0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
TEST EDX,EDX
LEA ECX,[EBX + 0xfffb848d]
LEA EDX,[EBX + 0xfffbb657]
CMOVZ EDX,ECX
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfffb8491]
PUSH EAX
PUSH 0x1
CALL 0x0002f9e0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }" if (parenthesized_expression "((param_3 & 0x10) != 0)" ( (binary_expression "(param_3 & 0x10) != 0" (parenthesized_expression "(param_3 & 0x10)" ( (binary_expression "param_3 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }" { (expression_statement "puVar1 = &DAT_001029c5;" (assignment_expression "puVar1 = &DAT_001029c5" identifier = (pointer_expression "&DAT_001029c5" & identifier)) ;) (if_statement "if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar1 = &DAT_001029c8;\n    }" { (expression_statement "puVar1 = &DAT_001029c8;" (assignment_expression "puVar1 = &DAT_001029c8" identifier = (pointer_expression "&DAT_001029c8" & identifier)) ;) })) (expression_statement "__printf_chk(1,"shopt %s %s\n",puVar1,param_1);" (call_expression "__printf_chk(1,"shopt %s %s\n",puVar1,param_1)" identifier (argument_list "(1,"shopt %s %s\n",puVar1,param_1)" ( number_literal , (string_literal ""shopt %s %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar2 = "on";" (assignment_expression "pcVar2 = "on"" identifier = (string_literal ""on"" " string_content ")) ;) (if_statement "if (param_2 == 0) {\n    pcVar2 = "off";\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = "off";\n  }" { (expression_statement "pcVar2 = "off";" (assignment_expression "pcVar2 = "off"" identifier = (string_literal ""off"" " string_content ")) ;) })) (expression_statement "__printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);" (call_expression "__printf_chk(1,"%-15s\t%s\n",param_1,pcVar2)" identifier (argument_list "(1,"%-15s\t%s\n",param_1,pcVar2)" ( number_literal , (string_literal ""%-15s\t%s\n"" " string_content escape_sequence string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 print_shopt(char *name,int val,int flags)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((flags & 0x10U) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (val == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,name);\n    return;\n  }\n  pcVar2 = "on";\n  if (val == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",name,pcVar2);\n  return;\n}\n\n" comment (function_definition "void __regparm3 print_shopt(char *name,int val,int flags)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((flags & 0x10U) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (val == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,name);\n    return;\n  }\n  pcVar2 = "on";\n  if (val == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",name,pcVar2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "print_shopt(char *name,int val,int flags)" identifier (parameter_list "(char *name,int val,int flags)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int val" primitive_type identifier) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((flags & 0x10U) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (val == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,name);\n    return;\n  }\n  pcVar2 = "on";\n  if (val == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",name,pcVar2);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((flags & 0x10U) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (val == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,name);\n    return;\n  }" if (parenthesized_expression "((flags & 0x10U) != 0)" ( (binary_expression "(flags & 0x10U) != 0" (parenthesized_expression "(flags & 0x10U)" ( (binary_expression "flags & 0x10U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    puVar1 = &DAT_001029c5;\n    if (val == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,name);\n    return;\n  }" { (expression_statement "puVar1 = &DAT_001029c5;" (assignment_expression "puVar1 = &DAT_001029c5" identifier = (pointer_expression "&DAT_001029c5" & identifier)) ;) (if_statement "if (val == 0) {\n      puVar1 = &DAT_001029c8;\n    }" if (parenthesized_expression "(val == 0)" ( (binary_expression "val == 0" identifier == number_literal) )) (compound_statement "{\n      puVar1 = &DAT_001029c8;\n    }" { (expression_statement "puVar1 = &DAT_001029c8;" (assignment_expression "puVar1 = &DAT_001029c8" identifier = (pointer_expression "&DAT_001029c8" & identifier)) ;) })) (expression_statement "__printf_chk(1,"shopt %s %s\n",puVar1,name);" (call_expression "__printf_chk(1,"shopt %s %s\n",puVar1,name)" identifier (argument_list "(1,"shopt %s %s\n",puVar1,name)" ( number_literal , (string_literal ""shopt %s %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar2 = "on";" (assignment_expression "pcVar2 = "on"" identifier = (string_literal ""on"" " string_content ")) ;) (if_statement "if (val == 0) {\n    pcVar2 = "off";\n  }" if (parenthesized_expression "(val == 0)" ( (binary_expression "val == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = "off";\n  }" { (expression_statement "pcVar2 = "off";" (assignment_expression "pcVar2 = "off"" identifier = (string_literal ""off"" " string_content ")) ;) })) (expression_statement "__printf_chk(1,"%-15s\t%s\n",name,pcVar2);" (call_expression "__printf_chk(1,"%-15s\t%s\n",name,pcVar2)" identifier (argument_list "(1,"%-15s\t%s\n",name,pcVar2)" ( number_literal , (string_literal ""%-15s\t%s\n"" " string_content escape_sequence string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,uint param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }" if (parenthesized_expression "((param_3 & 0x10) != 0)" ( (binary_expression "(param_3 & 0x10) != 0" (parenthesized_expression "(param_3 & 0x10)" ( (binary_expression "param_3 & 0x10" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }" { (expression_statement "puVar1 = &DAT_001029c5;" (assignment_expression "puVar1 = &DAT_001029c5" identifier = (pointer_expression "&DAT_001029c5" & identifier)) ;) (if_statement "if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      puVar1 = &DAT_001029c8;\n    }" { (expression_statement "puVar1 = &DAT_001029c8;" (assignment_expression "puVar1 = &DAT_001029c8" identifier = (pointer_expression "&DAT_001029c8" & identifier)) ;) })) (expression_statement "__printf_chk(1,"shopt %s %s\n",puVar1,param_1);" (call_expression "__printf_chk(1,"shopt %s %s\n",puVar1,param_1)" identifier (argument_list "(1,"shopt %s %s\n",puVar1,param_1)" ( number_literal , (string_literal ""shopt %s %s\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar2 = "on";" (assignment_expression "pcVar2 = "on"" identifier = (string_literal ""on"" " string_content ")) ;) (if_statement "if (param_2 == 0) {\n    pcVar2 = "off";\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = "off";\n  }" { (expression_statement "pcVar2 = "off";" (assignment_expression "pcVar2 = "off"" identifier = (string_literal ""off"" " string_content ")) ;) })) (expression_statement "__printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);" (call_expression "__printf_chk(1,"%-15s\t%s\n",param_1,pcVar2)" identifier (argument_list "(1,"%-15s\t%s\n",param_1,pcVar2)" ( number_literal , (string_literal ""%-15s\t%s\n"" " string_content escape_sequence string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence string_content escape_sequence ") , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000af0c0(undefined4 param_1,int param_2,uint param_3)" (identifier "FUN_000af0c0") (parameter_list "(undefined4 param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  \n  if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }\n  pcVar2 = "on";\n  if (param_2 == 0) {\n    pcVar2 = "off";\n  }\n  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (if_statement "if ((param_3 & 0x10) != 0) {\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }" (if "if") (parenthesized_expression "((param_3 & 0x10) != 0)" (( "(") (binary_expression "(param_3 & 0x10) != 0" (parenthesized_expression "(param_3 & 0x10)" (( "(") (binary_expression "param_3 & 0x10" (identifier "param_3") (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar1 = &DAT_001029c5;\n    if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }\n    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);\n    return;\n  }" ({ "{") (expression_statement "puVar1 = &DAT_001029c5;" (assignment_expression "puVar1 = &DAT_001029c5" (identifier "puVar1") (= "=") (pointer_expression "&DAT_001029c5" (& "&") (identifier "DAT_001029c5"))) (; ";")) (if_statement "if (param_2 == 0) {\n      puVar1 = &DAT_001029c8;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      puVar1 = &DAT_001029c8;\n    }" ({ "{") (expression_statement "puVar1 = &DAT_001029c8;" (assignment_expression "puVar1 = &DAT_001029c8" (identifier "puVar1") (= "=") (pointer_expression "&DAT_001029c8" (& "&") (identifier "DAT_001029c8"))) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,"shopt %s %s\n",puVar1,param_1);" (call_expression "__printf_chk(1,"shopt %s %s\n",puVar1,param_1)" (identifier "__printf_chk") (argument_list "(1,"shopt %s %s\n",puVar1,param_1)" (( "(") (number_literal "1") (, ",") (string_literal ""shopt %s %s\n"" (" """) (string_content "shopt %s %s") (escape_sequence "\n") (" """)) (, ",") (identifier "puVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar2 = "on";" (assignment_expression "pcVar2 = "on"" (identifier "pcVar2") (= "=") (string_literal ""on"" (" """) (string_content "on") (" """))) (; ";")) (if_statement "if (param_2 == 0) {\n    pcVar2 = "off";\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar2 = "off";\n  }" ({ "{") (expression_statement "pcVar2 = "off";" (assignment_expression "pcVar2 = "off"" (identifier "pcVar2") (= "=") (string_literal ""off"" (" """) (string_content "off") (" """))) (; ";")) (} "}"))) (expression_statement "__printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);" (call_expression "__printf_chk(1,"%-15s\t%s\n",param_1,pcVar2)" (identifier "__printf_chk") (argument_list "(1,"%-15s\t%s\n",param_1,pcVar2)" (( "(") (number_literal "1") (, ",") (string_literal ""%-15s\t%s\n"" (" """) (string_content "%-15s") (escape_sequence "\t") (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "param_1") (, ",") (identifier "pcVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3 function_1(char *name,int var_2,int var_1)

{
  type_1 *puVar1;
  char *pcVar2;
  
  if ((var_1 & 0x10U) != 0) {
    puVar1 = &DAT_001029c5;
    if (var_2 == 0) {
      puVar1 = &DAT_001029c8;
    }
    var_3(1,"shopt %s %s\n",puVar1,name);
    return;
  }
  pcVar2 = "on";
  if (var_2 == 0) {
    pcVar2 = "off";
  }
  var_3(1,"%-15s\t%s\n",name,pcVar2);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (identifier) (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence) (string_content) (escape_sequence)) (identifier) (identifier)))) (return_statement))))

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

void __regparm3 MASKED(undefined4 param_1,int param_2,uint param_3)

{
  undefined *puVar1;
  char *pcVar2;
  
  if ((param_3 & 0x10) != 0) {
    puVar1 = &DAT_001029c5;
    if (param_2 == 0) {
      puVar1 = &DAT_001029c8;
    }
    __printf_chk(1,"shopt %s %s\n",puVar1,param_1);
    return;
  }
  pcVar2 = "on";
  if (param_2 == 0) {
    pcVar2 = "off";
  }
  __printf_chk(1,"%-15s\t%s\n",param_1,pcVar2);
  return;
}

