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

char * cond_expand_word(WORD_DESC *w,int special)

{
  WORD_LIST *list;
  char *pathname;
  char *pcVar1;
  int *in_stack_ffffffd8;
  
  if ((w->word != (char *)0x0) && (*w->word != '\0')) {
    w->flags = w->flags | 0x40;
    expand_no_split_dollar_star = 1;
    list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);
    expand_no_split_dollar_star = 0;
    if (list != (WORD_LIST *)0x0) {
      if (special == 0) {
        dequote_list(list);
        pcVar1 = string_list_internal(list," ");
      }
      else {
        word_list_remove_quoted_nulls(list);
        pathname = string_list_internal(list," ");
        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);
        free(pathname);
      }
      dispose_words(list);
      return pcVar1;
    }
  }
  return (char *)0x0;
}



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

undefined4 cond_expand_word(undefined4 *param_1,int param_2)

{
  int iVar1;
  void *__ptr;
  undefined4 uVar2;
  
  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {
    param_1[1] = param_1[1] | 0x40;
    DAT_00151068 = 1;
    iVar1 = FUN_00075870(0);
    DAT_00151068 = 0;
    if (iVar1 != 0) {
      if (param_2 == 0) {
        dequote_list(iVar1);
        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);
      }
      else {
        word_list_remove_quoted_nulls(iVar1);
        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);
        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');
        free(__ptr);
      }
      dispose_words(iVar1);
      return uVar2;
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xd3b97
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x00076520
CMP byte ptr [EDX],0x0
JZ 0x00076520
SUB ESP,0xc
OR dword ptr [EAX + 0x4],0x40
XOR ECX,ECX
XOR EDX,EDX
PUSH 0x0
MOV dword ptr [EBX + 0x7068],0x1
CALL 0x00075870
ADD ESP,0x10
MOV dword ptr [EBX + 0x7068],0x0
MOV ESI,EAX
TEST EAX,EAX
JZ 0x00076520
MOV ECX,dword ptr [ESP + 0x24]
TEST ECX,ECX
JZ 0x00076530
XOR EAX,EAX
CMP dword ptr [ESP + 0x24],0x2
SETZ AL
SUB ESP,0xc
PUSH ESI
MOV EDI,EAX
LEA EDI,[EDI*0x4 + 0x9]
CALL 0x0006cee0
POP EAX
LEA EAX,[EBX + 0xfffa68bf]
POP EDX
PUSH EAX
PUSH ESI
CALL 0x0006a6c0
POP ECX
MOV EBP,EAX
POP EAX
PUSH EDI
PUSH EBP
CALL 0x0007e0f0
MOV dword ptr [ESP],EBP
MOV EDI,EAX
CALL 0x0002f200
ADD ESP,0x10
SUB ESP,0xc
PUSH ESI
CALL 0x00046900
ADD ESP,0x10
MOV EAX,EDI
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EDI,EDI
POP EBX
MOV EAX,EDI
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EAX
CALL 0x0006c2b0
POP EAX
LEA EAX,[EBX + 0xfffa68bf]
POP EDX
PUSH EAX
PUSH ESI
CALL 0x0006a6c0
ADD ESP,0x10
MOV EDI,EAX
JMP 0x00076503
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 cond_expand_word(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 cond_expand_word(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "cond_expand_word(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0'))" ( (binary_expression "((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')" (parenthesized_expression "((char *)*param_1 != (char *)0x0)" ( (binary_expression "(char *)*param_1 != (char *)0x0" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(char *)*param_1 != '\0')" ( (binary_expression "*(char *)*param_1 != '\0'" (pointer_expression "*(char *)*param_1" * (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }" { (expression_statement "param_1[1] = param_1[1] | 0x40;" (assignment_expression "param_1[1] = param_1[1] | 0x40" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] | 0x40" (subscript_expression "param_1[1]" identifier [ number_literal ]) | number_literal)) ;) (expression_statement "DAT_00151068 = 1;" (assignment_expression "DAT_00151068 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00075870(0);" (assignment_expression "iVar1 = FUN_00075870(0)" identifier = (call_expression "FUN_00075870(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "DAT_00151068 = 0;" (assignment_expression "DAT_00151068 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }" { (if_statement "if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }" { (expression_statement "dequote_list(iVar1);" (call_expression "dequote_list(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = string_list_internal(iVar1,&DAT_000f08bf);" (assignment_expression "uVar2 = string_list_internal(iVar1,&DAT_000f08bf)" identifier = (call_expression "string_list_internal(iVar1,&DAT_000f08bf)" identifier (argument_list "(iVar1,&DAT_000f08bf)" ( identifier , (pointer_expression "&DAT_000f08bf" & identifier) )))) ;) }) (else_clause "else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" else (compound_statement "{\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" { (expression_statement "word_list_remove_quoted_nulls(iVar1);" (call_expression "word_list_remove_quoted_nulls(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "__ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);" (assignment_expression "__ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf)" identifier = (cast_expression "(void *)string_list_internal(iVar1,&DAT_000f08bf)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "string_list_internal(iVar1,&DAT_000f08bf)" identifier (argument_list "(iVar1,&DAT_000f08bf)" ( identifier , (pointer_expression "&DAT_000f08bf" & identifier) ))))) ;) (expression_statement "uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');" (assignment_expression "uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t')" identifier = (call_expression "quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t')" identifier (argument_list "(__ptr,(param_2 == 2) * '\x04' + '\t')" ( identifier , (binary_expression "(param_2 == 2) * '\x04' + '\t'" (binary_expression "(param_2 == 2) * '\x04'" (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) * (char_literal "'\x04'" ' escape_sequence ')) + (char_literal "'\t'" ' escape_sequence ')) )))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (expression_statement "dispose_words(iVar1);" (call_expression "dispose_words(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * cond_expand_word(WORD_DESC *w,int special)\n\n{\n  WORD_LIST *list;\n  char *pathname;\n  char *pcVar1;\n  int *in_stack_ffffffd8;\n  \n  if ((w->word != (char *)0x0) && (*w->word != '\0')) {\n    w->flags = w->flags | 0x40;\n    expand_no_split_dollar_star = 1;\n    list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);\n    expand_no_split_dollar_star = 0;\n    if (list != (WORD_LIST *)0x0) {\n      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\n    }\n  }\n  return (char *)0x0;\n}\n\n" comment comment (function_definition "char * cond_expand_word(WORD_DESC *w,int special)\n\n{\n  WORD_LIST *list;\n  char *pathname;\n  char *pcVar1;\n  int *in_stack_ffffffd8;\n  \n  if ((w->word != (char *)0x0) && (*w->word != '\0')) {\n    w->flags = w->flags | 0x40;\n    expand_no_split_dollar_star = 1;\n    list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);\n    expand_no_split_dollar_star = 0;\n    if (list != (WORD_LIST *)0x0) {\n      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\n    }\n  }\n  return (char *)0x0;\n}" primitive_type (pointer_declarator "* cond_expand_word(WORD_DESC *w,int special)" * (function_declarator "cond_expand_word(WORD_DESC *w,int special)" identifier (parameter_list "(WORD_DESC *w,int special)" ( (parameter_declaration "WORD_DESC *w" type_identifier (pointer_declarator "*w" * identifier)) , (parameter_declaration "int special" primitive_type identifier) )))) (compound_statement "{\n  WORD_LIST *list;\n  char *pathname;\n  char *pcVar1;\n  int *in_stack_ffffffd8;\n  \n  if ((w->word != (char *)0x0) && (*w->word != '\0')) {\n    w->flags = w->flags | 0x40;\n    expand_no_split_dollar_star = 1;\n    list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);\n    expand_no_split_dollar_star = 0;\n    if (list != (WORD_LIST *)0x0) {\n      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\n    }\n  }\n  return (char *)0x0;\n}" { (declaration "WORD_LIST *list;" type_identifier (pointer_declarator "*list" * identifier) ;) (declaration "char *pathname;" primitive_type (pointer_declarator "*pathname" * identifier) ;) (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *in_stack_ffffffd8;" primitive_type (pointer_declarator "*in_stack_ffffffd8" * identifier) ;) (if_statement "if ((w->word != (char *)0x0) && (*w->word != '\0')) {\n    w->flags = w->flags | 0x40;\n    expand_no_split_dollar_star = 1;\n    list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);\n    expand_no_split_dollar_star = 0;\n    if (list != (WORD_LIST *)0x0) {\n      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\n    }\n  }" if (parenthesized_expression "((w->word != (char *)0x0) && (*w->word != '\0'))" ( (binary_expression "(w->word != (char *)0x0) && (*w->word != '\0')" (parenthesized_expression "(w->word != (char *)0x0)" ( (binary_expression "w->word != (char *)0x0" (field_expression "w->word" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*w->word != '\0')" ( (binary_expression "*w->word != '\0'" (pointer_expression "*w->word" * (field_expression "w->word" identifier -> field_identifier)) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    w->flags = w->flags | 0x40;\n    expand_no_split_dollar_star = 1;\n    list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);\n    expand_no_split_dollar_star = 0;\n    if (list != (WORD_LIST *)0x0) {\n      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\n    }\n  }" { (expression_statement "w->flags = w->flags | 0x40;" (assignment_expression "w->flags = w->flags | 0x40" (field_expression "w->flags" identifier -> field_identifier) = (binary_expression "w->flags | 0x40" (field_expression "w->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "expand_no_split_dollar_star = 1;" (assignment_expression "expand_no_split_dollar_star = 1" identifier = number_literal) ;) (expression_statement "list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8);" (assignment_expression "list = call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8)" identifier = (call_expression "call_expand_word_internal(w,0,0,(int *)0x0,in_stack_ffffffd8)" identifier (argument_list "(w,0,0,(int *)0x0,in_stack_ffffffd8)" ( identifier , number_literal , number_literal , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) (expression_statement "expand_no_split_dollar_star = 0;" (assignment_expression "expand_no_split_dollar_star = 0" identifier = number_literal) ;) (if_statement "if (list != (WORD_LIST *)0x0) {\n      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\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      if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }\n      dispose_words(list);\n      return pcVar1;\n    }" { (if_statement "if (special == 0) {\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }\n      else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }" if (parenthesized_expression "(special == 0)" ( (binary_expression "special == 0" identifier == number_literal) )) (compound_statement "{\n        dequote_list(list);\n        pcVar1 = string_list_internal(list," ");\n      }" { (expression_statement "dequote_list(list);" (call_expression "dequote_list(list)" identifier (argument_list "(list)" ( identifier ))) ;) (expression_statement "pcVar1 = string_list_internal(list," ");" (assignment_expression "pcVar1 = string_list_internal(list," ")" identifier = (call_expression "string_list_internal(list," ")" identifier (argument_list "(list," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) }) (else_clause "else {\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }" else (compound_statement "{\n        word_list_remove_quoted_nulls(list);\n        pathname = string_list_internal(list," ");\n        pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);\n        free(pathname);\n      }" { (expression_statement "word_list_remove_quoted_nulls(list);" (call_expression "word_list_remove_quoted_nulls(list)" identifier (argument_list "(list)" ( identifier ))) ;) (expression_statement "pathname = string_list_internal(list," ");" (assignment_expression "pathname = string_list_internal(list," ")" identifier = (call_expression "string_list_internal(list," ")" identifier (argument_list "(list," ")" ( identifier , (string_literal "" "" " string_content ") )))) ;) (expression_statement "pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9);" (assignment_expression "pcVar1 = quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9)" identifier = (call_expression "quote_string_for_globbing(pathname,(uint)(special == 2) * 4 + 9)" identifier (argument_list "(pathname,(uint)(special == 2) * 4 + 9)" ( identifier , (binary_expression "(uint)(special == 2) * 4 + 9" (binary_expression "(uint)(special == 2) * 4" (call_expression "(uint)(special == 2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(special == 2)" ( (binary_expression "special == 2" identifier == number_literal) ))) * number_literal) + number_literal) )))) ;) (expression_statement "free(pathname);" (call_expression "free(pathname)" identifier (argument_list "(pathname)" ( identifier ))) ;) }))) (expression_statement "dispose_words(list);" (call_expression "dispose_words(list)" identifier (argument_list "(list)" ( identifier ))) ;) (return_statement "return pcVar1;" return identifier ;) })) })) (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 cond_expand_word(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 cond_expand_word(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "cond_expand_word(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0'))" ( (binary_expression "((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')" (parenthesized_expression "((char *)*param_1 != (char *)0x0)" ( (binary_expression "(char *)*param_1 != (char *)0x0" (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(char *)*param_1 != '\0')" ( (binary_expression "*(char *)*param_1 != '\0'" (pointer_expression "*(char *)*param_1" * (cast_expression "(char *)*param_1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }" { (expression_statement "param_1[1] = param_1[1] | 0x40;" (assignment_expression "param_1[1] = param_1[1] | 0x40" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] | 0x40" (subscript_expression "param_1[1]" identifier [ number_literal ]) | number_literal)) ;) (expression_statement "DAT_00151068 = 1;" (assignment_expression "DAT_00151068 = 1" identifier = number_literal) ;) (expression_statement "iVar1 = FUN_00075870(0);" (assignment_expression "iVar1 = FUN_00075870(0)" identifier = (call_expression "FUN_00075870(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "DAT_00151068 = 0;" (assignment_expression "DAT_00151068 = 0" identifier = number_literal) ;) (if_statement "if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }" { (if_statement "if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }" { (expression_statement "dequote_list(iVar1);" (call_expression "dequote_list(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "uVar2 = string_list_internal(iVar1,&DAT_000f08bf);" (assignment_expression "uVar2 = string_list_internal(iVar1,&DAT_000f08bf)" identifier = (call_expression "string_list_internal(iVar1,&DAT_000f08bf)" identifier (argument_list "(iVar1,&DAT_000f08bf)" ( identifier , (pointer_expression "&DAT_000f08bf" & identifier) )))) ;) }) (else_clause "else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" else (compound_statement "{\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" { (expression_statement "word_list_remove_quoted_nulls(iVar1);" (call_expression "word_list_remove_quoted_nulls(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "__ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);" (assignment_expression "__ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf)" identifier = (cast_expression "(void *)string_list_internal(iVar1,&DAT_000f08bf)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "string_list_internal(iVar1,&DAT_000f08bf)" identifier (argument_list "(iVar1,&DAT_000f08bf)" ( identifier , (pointer_expression "&DAT_000f08bf" & identifier) ))))) ;) (expression_statement "uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');" (assignment_expression "uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t')" identifier = (call_expression "quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t')" identifier (argument_list "(__ptr,(param_2 == 2) * '\x04' + '\t')" ( identifier , (binary_expression "(param_2 == 2) * '\x04' + '\t'" (binary_expression "(param_2 == 2) * '\x04'" (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) * (char_literal "'\x04'" ' escape_sequence ')) + (char_literal "'\t'" ' escape_sequence ')) )))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (expression_statement "dispose_words(iVar1);" (call_expression "dispose_words(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) | LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) * (char_literal ' escape_sequence ')) + (char_literal ' escape_sequence ')) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 cond_expand_word(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "cond_expand_word(undefined4 *param_1,int param_2)" (identifier "cond_expand_word") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  void *__ptr;\n  undefined4 uVar2;\n  \n  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0'))" (( "(") (binary_expression "((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')" (parenthesized_expression "((char *)*param_1 != (char *)0x0)" (( "(") (binary_expression "(char *)*param_1 != (char *)0x0" (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)*param_1 != '\0')" (( "(") (binary_expression "*(char *)*param_1 != '\0'" (pointer_expression "*(char *)*param_1" (* "*") (cast_expression "(char *)*param_1" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    param_1[1] = param_1[1] | 0x40;\n    DAT_00151068 = 1;\n    iVar1 = FUN_00075870(0);\n    DAT_00151068 = 0;\n    if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }\n  }" ({ "{") (expression_statement "param_1[1] = param_1[1] | 0x40;" (assignment_expression "param_1[1] = param_1[1] | 0x40" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] | 0x40" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (| "|") (number_literal "0x40"))) (; ";")) (expression_statement "DAT_00151068 = 1;" (assignment_expression "DAT_00151068 = 1" (identifier "DAT_00151068") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar1 = FUN_00075870(0);" (assignment_expression "iVar1 = FUN_00075870(0)" (identifier "iVar1") (= "=") (call_expression "FUN_00075870(0)" (identifier "FUN_00075870") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (expression_statement "DAT_00151068 = 0;" (assignment_expression "DAT_00151068 = 0" (identifier "DAT_00151068") (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar1 != 0) {\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }\n      dispose_words(iVar1);\n      return uVar2;\n    }" ({ "{") (if_statement "if (param_2 == 0) {\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }\n      else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        dequote_list(iVar1);\n        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);\n      }" ({ "{") (expression_statement "dequote_list(iVar1);" (call_expression "dequote_list(iVar1)" (identifier "dequote_list") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "uVar2 = string_list_internal(iVar1,&DAT_000f08bf);" (assignment_expression "uVar2 = string_list_internal(iVar1,&DAT_000f08bf)" (identifier "uVar2") (= "=") (call_expression "string_list_internal(iVar1,&DAT_000f08bf)" (identifier "string_list_internal") (argument_list "(iVar1,&DAT_000f08bf)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "&DAT_000f08bf" (& "&") (identifier "DAT_000f08bf")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" (else "else") (compound_statement "{\n        word_list_remove_quoted_nulls(iVar1);\n        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);\n        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');\n        free(__ptr);\n      }" ({ "{") (expression_statement "word_list_remove_quoted_nulls(iVar1);" (call_expression "word_list_remove_quoted_nulls(iVar1)" (identifier "word_list_remove_quoted_nulls") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "__ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);" (assignment_expression "__ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf)" (identifier "__ptr") (= "=") (cast_expression "(void *)string_list_internal(iVar1,&DAT_000f08bf)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "string_list_internal(iVar1,&DAT_000f08bf)" (identifier "string_list_internal") (argument_list "(iVar1,&DAT_000f08bf)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "&DAT_000f08bf" (& "&") (identifier "DAT_000f08bf")) () ")"))))) (; ";")) (expression_statement "uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');" (assignment_expression "uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t')" (identifier "uVar2") (= "=") (call_expression "quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t')" (identifier "quote_string_for_globbing") (argument_list "(__ptr,(param_2 == 2) * '\x04' + '\t')" (( "(") (identifier "__ptr") (, ",") (binary_expression "(param_2 == 2) * '\x04' + '\t'" (binary_expression "(param_2 == 2) * '\x04'" (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (* "*") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) (+ "+") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) () ")")))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")))) (expression_statement "dispose_words(iVar1);" (call_expression "dispose_words(iVar1)" (identifier "dispose_words") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

char * function_1(type_1 *w,int var_3)

{
  type_2 *var_2;
  char *pathname;
  char *pcVar1;
  int *in_stack_ffffffd8;
  
  if ((w->word != (char *)0x0) && (*w->word != '\0')) {
    w->flags = w->flags | 0x40;
    expand_no_split_dollar_star = 1;
    var_2 = var_1(w,0,0,(int *)0x0,in_stack_ffffffd8);
    expand_no_split_dollar_star = 0;
    if (var_2 != (type_2 *)0x0) {
      if (var_3 == 0) {
        var_4(var_2);
        pcVar1 = var_5(var_2," ");
      }
      else {
        var_6(var_2);
        pathname = var_5(var_2," ");
        pcVar1 = var_7(pathname,(uint)(var_3 == 2) * 4 + 9);
        var_8(pathname);
      }
      var_9(var_2);
      return pcVar1;
    }
  }
  return (char *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence))) right: (char_literal (escape_sequence))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))))) (return_statement (number_literal)))))

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

undefined4 MASKED(undefined4 *param_1,int param_2)

{
  int iVar1;
  void *__ptr;
  undefined4 uVar2;
  
  if (((char *)*param_1 != (char *)0x0) && (*(char *)*param_1 != '\0')) {
    param_1[1] = param_1[1] | 0x40;
    DAT_00151068 = 1;
    iVar1 = FUN_00075870(0);
    DAT_00151068 = 0;
    if (iVar1 != 0) {
      if (param_2 == 0) {
        dequote_list(iVar1);
        uVar2 = string_list_internal(iVar1,&DAT_000f08bf);
      }
      else {
        word_list_remove_quoted_nulls(iVar1);
        __ptr = (void *)string_list_internal(iVar1,&DAT_000f08bf);
        uVar2 = quote_string_for_globbing(__ptr,(param_2 == 2) * '\x04' + '\t');
        free(__ptr);
      }
      dispose_words(iVar1);
      return uVar2;
    }
  }
  return 0;
}

