
char * list_transform(wchar_t xc,SHELL_VAR *v,WORD_LIST *list,wchar_t itype,wchar_t quoted)

{
  char *pcVar1;
  WORD_DESC *word;
  WORD_LIST *wlink;
  wchar_t local_3c;
  
  if (list == (WORD_LIST *)0x0) {
    wlink = (WORD_LIST *)0x0;
  }
  else {
    wlink = (WORD_LIST *)0x0;
    do {
      pcVar1 = string_transform(xc,v,list->word->word);
      word = alloc_word_desc();
      if (pcVar1 == (char *)0x0) {
        pcVar1 = (char *)xmalloc(1);
        *pcVar1 = '\0';
      }
      word->word = pcVar1;
      wlink = make_word_list(word,wlink);
      list = list->next;
    } while (list != (word_list *)0x0);
    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {
      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);
    }
  }
  local_3c = quoted;
  if (((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0')) {
    local_3c = quoted | 1;
  }
  pcVar1 = string_list_pos_params(itype,wlink,local_3c);
  dispose_words(wlink);
  return pcVar1;
}



undefined8
FUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)

{
  undefined1 *puVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  long *plVar4;
  uint local_3c;
  
  if (param_3 == (long *)0x0) {
    plVar4 = (long *)0x0;
  }
  else {
    plVar4 = (long *)0x0;
    do {
      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);
      puVar2 = (undefined8 *)alloc_word_desc();
      if (puVar1 == (undefined1 *)0x0) {
        puVar1 = (undefined1 *)xmalloc(1);
        *puVar1 = 0;
      }
      *puVar2 = puVar1;
      plVar4 = (long *)make_word_list(puVar2,plVar4);
      param_3 = (long *)*param_3;
    } while (param_3 != (long *)0x0);
    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {
      plVar4 = (long *)list_reverse(plVar4);
    }
  }
  local_3c = param_5;
  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {
    local_3c = param_5 | 1;
  }
  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);
  dispose_words(plVar4);
  return uVar3;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RBX,RDX
MOV dword ptr [RSP + 0x8],ECX
MOV dword ptr [RSP + 0xc],R8D
TEST RDX,RDX
JZ 0x00162233
MOV R14D,EDI
MOV R15,RSI
MOV R13D,0x0
JMP 0x001621b0
MOV qword ptr [R12],RBP
MOV RSI,R13
MOV RDI,R12
CALL 0x0013d92c
MOV R13,RAX
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x001621e4
MOV RAX,qword ptr [RBX + 0x8]
MOV RDX,qword ptr [RAX]
MOV RSI,R15
MOV EDI,R14D
CALL 0x001609f0
MOV RBP,RAX
CALL 0x0013d6f0
MOV R12,RAX
TEST RBP,RBP
JNZ 0x00162196
MOV EDI,0x1
CALL 0x00188151
MOV byte ptr [RAX],0x0
MOV RBP,RAX
JMP 0x00162196
TEST RAX,RAX
JZ 0x001621ff
CMP qword ptr [RAX],0x0
JZ 0x001621ff
MOV RDI,RAX
MOV EAX,0x0
CALL 0x001815c6
MOV R13,RAX
CMP dword ptr [RSP + 0x8],0x2a
JZ 0x00162238
MOV EDX,dword ptr [RSP + 0xc]
MOV RSI,R13
MOV EDI,dword ptr [RSP + 0x8]
CALL 0x0016203d
MOV RBX,RAX
MOV RDI,R13
CALL 0x00140e9a
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV R13,RDX
JMP 0x001621ff
CMP dword ptr [0x002157e0],0x0
JZ 0x00162206
CMP dword ptr [0x0021bd2c],0x0
JZ 0x00162206
OR dword ptr [RSP + 0xc],0x1
JMP 0x00162206
(translation_unit "undefined8\nFUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)\n\n{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}\n\n" (function_definition "undefined8\nFUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)\n\n{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)" identifier (parameter_list "(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "uint local_3c;" type_identifier identifier ;) (if_statement "if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" if (parenthesized_expression "(param_3 == (long *)0x0)" ( (binary_expression "param_3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar4 = (long *)0x0;\n  }" { (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" else (compound_statement "{\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" { (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);" do (compound_statement "{\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    }" { (expression_statement "puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);" (assignment_expression "puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" identifier = (cast_expression "(undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" identifier (argument_list "(param_1,param_2,*(undefined8 *)param_3[1])" ( identifier , identifier , (pointer_expression "*(undefined8 *)param_3[1]" * (cast_expression "(undefined8 *)param_3[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ))))) ;) (expression_statement "puVar2 = (undefined8 *)alloc_word_desc();" (assignment_expression "puVar2 = (undefined8 *)alloc_word_desc()" identifier = (cast_expression "(undefined8 *)alloc_word_desc()" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "alloc_word_desc()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }" if (parenthesized_expression "(puVar1 == (undefined1 *)0x0)" ( (binary_expression "puVar1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }" { (expression_statement "puVar1 = (undefined1 *)xmalloc(1);" (assignment_expression "puVar1 = (undefined1 *)xmalloc(1)" identifier = (cast_expression "(undefined1 *)xmalloc(1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "plVar4 = (long *)make_word_list(puVar2,plVar4);" (assignment_expression "plVar4 = (long *)make_word_list(puVar2,plVar4)" identifier = (cast_expression "(long *)make_word_list(puVar2,plVar4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "make_word_list(puVar2,plVar4)" identifier (argument_list "(puVar2,plVar4)" ( identifier , identifier ))))) ;) (expression_statement "param_3 = (long *)*param_3;" (assignment_expression "param_3 = (long *)*param_3" identifier = (cast_expression "(long *)*param_3" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) }) while (parenthesized_expression "(param_3 != (long *)0x0)" ( (binary_expression "param_3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }" if (parenthesized_expression "((plVar4 != (long *)0x0) && (*plVar4 != 0))" ( (binary_expression "(plVar4 != (long *)0x0) && (*plVar4 != 0)" (parenthesized_expression "(plVar4 != (long *)0x0)" ( (binary_expression "plVar4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*plVar4 != 0)" ( (binary_expression "*plVar4 != 0" (pointer_expression "*plVar4" * identifier) != number_literal) ))) )) (compound_statement "{\n      plVar4 = (long *)list_reverse(plVar4);\n    }" { (expression_statement "plVar4 = (long *)list_reverse(plVar4);" (assignment_expression "plVar4 = (long *)list_reverse(plVar4)" identifier = (cast_expression "(long *)list_reverse(plVar4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse(plVar4)" identifier (argument_list "(plVar4)" ( identifier ))))) ;) })) }))) (expression_statement "local_3c = param_5;" (assignment_expression "local_3c = param_5" identifier = identifier) ;) (if_statement "if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }" if (parenthesized_expression "(((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0))" ( (binary_expression "((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)" (parenthesized_expression "((param_4 == 0x2a) && (DAT_002157e0 != 0))" ( (binary_expression "(param_4 == 0x2a) && (DAT_002157e0 != 0)" (parenthesized_expression "(param_4 == 0x2a)" ( (binary_expression "param_4 == 0x2a" identifier == number_literal) )) && (parenthesized_expression "(DAT_002157e0 != 0)" ( (binary_expression "DAT_002157e0 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(ifs_is_null != 0)" ( (binary_expression "ifs_is_null != 0" identifier != number_literal) ))) )) (compound_statement "{\n    local_3c = param_5 | 1;\n  }" { (expression_statement "local_3c = param_5 | 1;" (assignment_expression "local_3c = param_5 | 1" identifier = (binary_expression "param_5 | 1" identifier | number_literal)) ;) })) (expression_statement "uVar3 = string_list_pos_params(param_4,plVar4,local_3c);" (assignment_expression "uVar3 = string_list_pos_params(param_4,plVar4,local_3c)" identifier = (call_expression "string_list_pos_params(param_4,plVar4,local_3c)" identifier (argument_list "(param_4,plVar4,local_3c)" ( identifier , identifier , identifier )))) ;) (expression_statement "dispose_words(plVar4);" (call_expression "dispose_words(plVar4)" identifier (argument_list "(plVar4)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "char * list_transform(wchar_t xc,SHELL_VAR *v,WORD_LIST *list,wchar_t itype,wchar_t quoted)\n\n{\n  char *pcVar1;\n  WORD_DESC *word;\n  WORD_LIST *wlink;\n  wchar_t local_3c;\n  \n  if (list == (WORD_LIST *)0x0) {\n    wlink = (WORD_LIST *)0x0;\n  }\n  else {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }\n  }\n  local_3c = quoted;\n  if (((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0')) {\n    local_3c = quoted | 1;\n  }\n  pcVar1 = string_list_pos_params(itype,wlink,local_3c);\n  dispose_words(wlink);\n  return pcVar1;\n}\n\n" (function_definition "char * list_transform(wchar_t xc,SHELL_VAR *v,WORD_LIST *list,wchar_t itype,wchar_t quoted)\n\n{\n  char *pcVar1;\n  WORD_DESC *word;\n  WORD_LIST *wlink;\n  wchar_t local_3c;\n  \n  if (list == (WORD_LIST *)0x0) {\n    wlink = (WORD_LIST *)0x0;\n  }\n  else {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }\n  }\n  local_3c = quoted;\n  if (((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0')) {\n    local_3c = quoted | 1;\n  }\n  pcVar1 = string_list_pos_params(itype,wlink,local_3c);\n  dispose_words(wlink);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* list_transform(wchar_t xc,SHELL_VAR *v,WORD_LIST *list,wchar_t itype,wchar_t quoted)" * (function_declarator "list_transform(wchar_t xc,SHELL_VAR *v,WORD_LIST *list,wchar_t itype,wchar_t quoted)" identifier (parameter_list "(wchar_t xc,SHELL_VAR *v,WORD_LIST *list,wchar_t itype,wchar_t quoted)" ( (parameter_declaration "wchar_t xc" type_identifier identifier) , (parameter_declaration "SHELL_VAR *v" type_identifier (pointer_declarator "*v" * identifier)) , (parameter_declaration "WORD_LIST *list" type_identifier (pointer_declarator "*list" * identifier)) , (parameter_declaration "wchar_t itype" type_identifier identifier) , (parameter_declaration "wchar_t quoted" type_identifier identifier) )))) (compound_statement "{\n  char *pcVar1;\n  WORD_DESC *word;\n  WORD_LIST *wlink;\n  wchar_t local_3c;\n  \n  if (list == (WORD_LIST *)0x0) {\n    wlink = (WORD_LIST *)0x0;\n  }\n  else {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }\n  }\n  local_3c = quoted;\n  if (((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0')) {\n    local_3c = quoted | 1;\n  }\n  pcVar1 = string_list_pos_params(itype,wlink,local_3c);\n  dispose_words(wlink);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "WORD_DESC *word;" type_identifier (pointer_declarator "*word" * identifier) ;) (declaration "WORD_LIST *wlink;" type_identifier (pointer_declarator "*wlink" * identifier) ;) (declaration "wchar_t local_3c;" type_identifier identifier ;) (if_statement "if (list == (WORD_LIST *)0x0) {\n    wlink = (WORD_LIST *)0x0;\n  }\n  else {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }\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    wlink = (WORD_LIST *)0x0;\n  }" { (expression_statement "wlink = (WORD_LIST *)0x0;" (assignment_expression "wlink = (WORD_LIST *)0x0" identifier = (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    wlink = (WORD_LIST *)0x0;\n    do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }\n  }" else (compound_statement "{\n    wlink = (WORD_LIST *)0x0;\n    do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }\n  }" { (expression_statement "wlink = (WORD_LIST *)0x0;" (assignment_expression "wlink = (WORD_LIST *)0x0" identifier = (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);" do (compound_statement "{\n      pcVar1 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }\n      word->word = pcVar1;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    }" { (expression_statement "pcVar1 = string_transform(xc,v,list->word->word);" (assignment_expression "pcVar1 = string_transform(xc,v,list->word->word)" identifier = (call_expression "string_transform(xc,v,list->word->word)" identifier (argument_list "(xc,v,list->word->word)" ( identifier , identifier , (field_expression "list->word->word" (field_expression "list->word" identifier -> field_identifier) -> field_identifier) )))) ;) (expression_statement "word = alloc_word_desc();" (assignment_expression "word = alloc_word_desc()" identifier = (call_expression "alloc_word_desc()" identifier (argument_list "()" ( )))) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar1 = (char *)xmalloc(1);\n        *pcVar1 = '\0';\n      }" { (expression_statement "pcVar1 = (char *)xmalloc(1);" (assignment_expression "pcVar1 = (char *)xmalloc(1)" identifier = (cast_expression "(char *)xmalloc(1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "word->word = pcVar1;" (assignment_expression "word->word = pcVar1" (field_expression "word->word" identifier -> field_identifier) = identifier) ;) (expression_statement "wlink = make_word_list(word,wlink);" (assignment_expression "wlink = make_word_list(word,wlink)" identifier = (call_expression "make_word_list(word,wlink)" identifier (argument_list "(word,wlink)" ( 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)) )) ;) (if_statement "if ((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)) {\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }" if (parenthesized_expression "((wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0))" ( (binary_expression "(wlink != (WORD_LIST *)0x0) && (wlink->next != (word_list *)0x0)" (parenthesized_expression "(wlink != (WORD_LIST *)0x0)" ( (binary_expression "wlink != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(wlink->next != (word_list *)0x0)" ( (binary_expression "wlink->next != (word_list *)0x0" (field_expression "wlink->next" identifier -> field_identifier) != (cast_expression "(word_list *)0x0" ( (type_descriptor "word_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n    }" { (expression_statement "wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);" (assignment_expression "wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink)" identifier = (cast_expression "(WORD_LIST *)list_reverse((GENERIC_LIST *)wlink)" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse((GENERIC_LIST *)wlink)" identifier (argument_list "((GENERIC_LIST *)wlink)" ( (cast_expression "(GENERIC_LIST *)wlink" ( (type_descriptor "GENERIC_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) })) }))) (expression_statement "local_3c = quoted;" (assignment_expression "local_3c = quoted" identifier = identifier) ;) (if_statement "if (((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0')) {\n    local_3c = quoted | 1;\n  }" if (parenthesized_expression "(((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0'))" ( (binary_expression "((itype == L'*') && (expand_no_split_dollar_star != L'\0')) && (ifs_is_null != L'\0')" (parenthesized_expression "((itype == L'*') && (expand_no_split_dollar_star != L'\0'))" ( (binary_expression "(itype == L'*') && (expand_no_split_dollar_star != L'\0')" (parenthesized_expression "(itype == L'*')" ( (binary_expression "itype == L'*'" identifier == (char_literal "L'*'" L' character ')) )) && (parenthesized_expression "(expand_no_split_dollar_star != L'\0')" ( (binary_expression "expand_no_split_dollar_star != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) ))) )) && (parenthesized_expression "(ifs_is_null != L'\0')" ( (binary_expression "ifs_is_null != L'\0'" identifier != (char_literal "L'\0'" L' escape_sequence ')) ))) )) (compound_statement "{\n    local_3c = quoted | 1;\n  }" { (expression_statement "local_3c = quoted | 1;" (assignment_expression "local_3c = quoted | 1" identifier = (binary_expression "quoted | 1" identifier | number_literal)) ;) })) (expression_statement "pcVar1 = string_list_pos_params(itype,wlink,local_3c);" (assignment_expression "pcVar1 = string_list_pos_params(itype,wlink,local_3c)" identifier = (call_expression "string_list_pos_params(itype,wlink,local_3c)" identifier (argument_list "(itype,wlink,local_3c)" ( identifier , identifier , identifier )))) ;) (expression_statement "dispose_words(wlink);" (call_expression "dispose_words(wlink)" identifier (argument_list "(wlink)" ( identifier ))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "undefined8\nFUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)\n\n{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}\n\n" (function_definition "undefined8\nFUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)\n\n{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)" identifier (parameter_list "(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "long *param_3" (sized_type_specifier "long" long) (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long *plVar4;" (sized_type_specifier "long" long) (pointer_declarator "*plVar4" * identifier) ;) (declaration "uint local_3c;" type_identifier identifier ;) (if_statement "if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" if (parenthesized_expression "(param_3 == (long *)0x0)" ( (binary_expression "param_3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar4 = (long *)0x0;\n  }" { (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" else (compound_statement "{\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" { (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);" do (compound_statement "{\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    }" { (expression_statement "puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);" (assignment_expression "puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" identifier = (cast_expression "(undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" identifier (argument_list "(param_1,param_2,*(undefined8 *)param_3[1])" ( identifier , identifier , (pointer_expression "*(undefined8 *)param_3[1]" * (cast_expression "(undefined8 *)param_3[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_3[1]" identifier [ number_literal ]))) ))))) ;) (expression_statement "puVar2 = (undefined8 *)alloc_word_desc();" (assignment_expression "puVar2 = (undefined8 *)alloc_word_desc()" identifier = (cast_expression "(undefined8 *)alloc_word_desc()" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "alloc_word_desc()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }" if (parenthesized_expression "(puVar1 == (undefined1 *)0x0)" ( (binary_expression "puVar1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }" { (expression_statement "puVar1 = (undefined1 *)xmalloc(1);" (assignment_expression "puVar1 = (undefined1 *)xmalloc(1)" identifier = (cast_expression "(undefined1 *)xmalloc(1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(1)" identifier (argument_list "(1)" ( number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) })) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "plVar4 = (long *)make_word_list(puVar2,plVar4);" (assignment_expression "plVar4 = (long *)make_word_list(puVar2,plVar4)" identifier = (cast_expression "(long *)make_word_list(puVar2,plVar4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "make_word_list(puVar2,plVar4)" identifier (argument_list "(puVar2,plVar4)" ( identifier , identifier ))))) ;) (expression_statement "param_3 = (long *)*param_3;" (assignment_expression "param_3 = (long *)*param_3" identifier = (cast_expression "(long *)*param_3" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) }) while (parenthesized_expression "(param_3 != (long *)0x0)" ( (binary_expression "param_3 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }" if (parenthesized_expression "((plVar4 != (long *)0x0) && (*plVar4 != 0))" ( (binary_expression "(plVar4 != (long *)0x0) && (*plVar4 != 0)" (parenthesized_expression "(plVar4 != (long *)0x0)" ( (binary_expression "plVar4 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*plVar4 != 0)" ( (binary_expression "*plVar4 != 0" (pointer_expression "*plVar4" * identifier) != number_literal) ))) )) (compound_statement "{\n      plVar4 = (long *)list_reverse(plVar4);\n    }" { (expression_statement "plVar4 = (long *)list_reverse(plVar4);" (assignment_expression "plVar4 = (long *)list_reverse(plVar4)" identifier = (cast_expression "(long *)list_reverse(plVar4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse(plVar4)" identifier (argument_list "(plVar4)" ( identifier ))))) ;) })) }))) (expression_statement "local_3c = param_5;" (assignment_expression "local_3c = param_5" identifier = identifier) ;) (if_statement "if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }" if (parenthesized_expression "(((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0))" ( (binary_expression "((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)" (parenthesized_expression "((param_4 == 0x2a) && (DAT_002157e0 != 0))" ( (binary_expression "(param_4 == 0x2a) && (DAT_002157e0 != 0)" (parenthesized_expression "(param_4 == 0x2a)" ( (binary_expression "param_4 == 0x2a" identifier == number_literal) )) && (parenthesized_expression "(DAT_002157e0 != 0)" ( (binary_expression "DAT_002157e0 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(ifs_is_null != 0)" ( (binary_expression "ifs_is_null != 0" identifier != number_literal) ))) )) (compound_statement "{\n    local_3c = param_5 | 1;\n  }" { (expression_statement "local_3c = param_5 | 1;" (assignment_expression "local_3c = param_5 | 1" identifier = (binary_expression "param_5 | 1" identifier | number_literal)) ;) })) (expression_statement "uVar3 = string_list_pos_params(param_4,plVar4,local_3c);" (assignment_expression "uVar3 = string_list_pos_params(param_4,plVar4,local_3c)" identifier = (call_expression "string_list_pos_params(param_4,plVar4,local_3c)" identifier (argument_list "(param_4,plVar4,local_3c)" ( identifier , identifier , identifier )))) ;) (expression_statement "dispose_words(plVar4);" (call_expression "dispose_words(plVar4)" identifier (argument_list "(plVar4)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) })) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8\nFUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)\n\n{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}" (type_identifier "undefined8") (function_declarator "FUN_00162165(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)" (identifier "FUN_00162165") (parameter_list "(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "long *param_3" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  long *plVar4;\n  uint local_3c;\n  \n  if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }\n  local_3c = param_5;\n  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }\n  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);\n  dispose_words(plVar4);\n  return uVar3;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "long *plVar4;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar4" (* "*") (identifier "plVar4")) (; ";")) (declaration "uint local_3c;" (type_identifier "uint") (identifier "local_3c") (; ";")) (if_statement "if (param_3 == (long *)0x0) {\n    plVar4 = (long *)0x0;\n  }\n  else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" (if "if") (parenthesized_expression "(param_3 == (long *)0x0)" (( "(") (binary_expression "param_3 == (long *)0x0" (identifier "param_3") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    plVar4 = (long *)0x0;\n  }" ({ "{") (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" (identifier "plVar4") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" (else "else") (compound_statement "{\n    plVar4 = (long *)0x0;\n    do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);\n    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }\n  }" ({ "{") (expression_statement "plVar4 = (long *)0x0;" (assignment_expression "plVar4 = (long *)0x0" (identifier "plVar4") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (do_statement "do {\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    } while (param_3 != (long *)0x0);" (do "do") (compound_statement "{\n      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);\n      puVar2 = (undefined8 *)alloc_word_desc();\n      if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }\n      *puVar2 = puVar1;\n      plVar4 = (long *)make_word_list(puVar2,plVar4);\n      param_3 = (long *)*param_3;\n    }" ({ "{") (expression_statement "puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);" (assignment_expression "puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1])" (identifier "FUN_001609f0") (argument_list "(param_1,param_2,*(undefined8 *)param_3[1])" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined8 *)param_3[1]" (* "*") (cast_expression "(undefined8 *)param_3[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")))) () ")"))))) (; ";")) (expression_statement "puVar2 = (undefined8 *)alloc_word_desc();" (assignment_expression "puVar2 = (undefined8 *)alloc_word_desc()" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)alloc_word_desc()" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "alloc_word_desc()" (identifier "alloc_word_desc") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined1 *)0x0) {\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }" (if "if") (parenthesized_expression "(puVar1 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined1 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar1 = (undefined1 *)xmalloc(1);\n        *puVar1 = 0;\n      }" ({ "{") (expression_statement "puVar1 = (undefined1 *)xmalloc(1);" (assignment_expression "puVar1 = (undefined1 *)xmalloc(1)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)xmalloc(1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(1)" (identifier "xmalloc") (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*puVar2 = puVar1;" (assignment_expression "*puVar2 = puVar1" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "plVar4 = (long *)make_word_list(puVar2,plVar4);" (assignment_expression "plVar4 = (long *)make_word_list(puVar2,plVar4)" (identifier "plVar4") (= "=") (cast_expression "(long *)make_word_list(puVar2,plVar4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "make_word_list(puVar2,plVar4)" (identifier "make_word_list") (argument_list "(puVar2,plVar4)" (( "(") (identifier "puVar2") (, ",") (identifier "plVar4") () ")"))))) (; ";")) (expression_statement "param_3 = (long *)*param_3;" (assignment_expression "param_3 = (long *)*param_3" (identifier "param_3") (= "=") (cast_expression "(long *)*param_3" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != (long *)0x0)" (( "(") (binary_expression "param_3 != (long *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {\n      plVar4 = (long *)list_reverse(plVar4);\n    }" (if "if") (parenthesized_expression "((plVar4 != (long *)0x0) && (*plVar4 != 0))" (( "(") (binary_expression "(plVar4 != (long *)0x0) && (*plVar4 != 0)" (parenthesized_expression "(plVar4 != (long *)0x0)" (( "(") (binary_expression "plVar4 != (long *)0x0" (identifier "plVar4") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*plVar4 != 0)" (( "(") (binary_expression "*plVar4 != 0" (pointer_expression "*plVar4" (* "*") (identifier "plVar4")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      plVar4 = (long *)list_reverse(plVar4);\n    }" ({ "{") (expression_statement "plVar4 = (long *)list_reverse(plVar4);" (assignment_expression "plVar4 = (long *)list_reverse(plVar4)" (identifier "plVar4") (= "=") (cast_expression "(long *)list_reverse(plVar4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "list_reverse(plVar4)" (identifier "list_reverse") (argument_list "(plVar4)" (( "(") (identifier "plVar4") () ")"))))) (; ";")) (} "}"))) (} "}")))) (expression_statement "local_3c = param_5;" (assignment_expression "local_3c = param_5" (identifier "local_3c") (= "=") (identifier "param_5")) (; ";")) (if_statement "if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {\n    local_3c = param_5 | 1;\n  }" (if "if") (parenthesized_expression "(((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0))" (( "(") (binary_expression "((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)" (parenthesized_expression "((param_4 == 0x2a) && (DAT_002157e0 != 0))" (( "(") (binary_expression "(param_4 == 0x2a) && (DAT_002157e0 != 0)" (parenthesized_expression "(param_4 == 0x2a)" (( "(") (binary_expression "param_4 == 0x2a" (identifier "param_4") (== "==") (number_literal "0x2a")) () ")")) (&& "&&") (parenthesized_expression "(DAT_002157e0 != 0)" (( "(") (binary_expression "DAT_002157e0 != 0" (identifier "DAT_002157e0") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(ifs_is_null != 0)" (( "(") (binary_expression "ifs_is_null != 0" (identifier "ifs_is_null") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    local_3c = param_5 | 1;\n  }" ({ "{") (expression_statement "local_3c = param_5 | 1;" (assignment_expression "local_3c = param_5 | 1" (identifier "local_3c") (= "=") (binary_expression "param_5 | 1" (identifier "param_5") (| "|") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = string_list_pos_params(param_4,plVar4,local_3c);" (assignment_expression "uVar3 = string_list_pos_params(param_4,plVar4,local_3c)" (identifier "uVar3") (= "=") (call_expression "string_list_pos_params(param_4,plVar4,local_3c)" (identifier "string_list_pos_params") (argument_list "(param_4,plVar4,local_3c)" (( "(") (identifier "param_4") (, ",") (identifier "plVar4") (, ",") (identifier "local_3c") () ")")))) (; ";")) (expression_statement "dispose_words(plVar4);" (call_expression "dispose_words(plVar4)" (identifier "dispose_words") (argument_list "(plVar4)" (( "(") (identifier "plVar4") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

char * function_1(type_1 xc,type_2 *v,type_3 *var_1,type_1 var_9,type_1 var_12)

{
  char *var_4;
  type_4 *word;
  type_3 *var_7;
  type_1 local_3c;
  
  if (var_1 == (type_3 *)0x0) {
    var_7 = (type_3 *)0x0;
  }
  else {
    var_7 = (type_3 *)0x0;
    do {
      var_4 = var_2(xc,v,var_1->word->word);
      word = var_3();
      if (var_4 == (char *)0x0) {
        var_4 = (char *)var_5(1);
        *var_4 = '\0';
      }
      word->word = var_4;
      var_7 = var_6(word,var_7);
      var_1 = var_1->next;
    } while (var_1 != (type_5 *)0x0);
    if ((var_7 != (type_3 *)0x0) && (var_7->next != (type_5 *)0x0)) {
      var_7 = (type_3 *)var_8((type_6 *)var_7);
    }
  }
  local_3c = var_12;
  if (((var_9 == L'*') && (var_10 != L'\0')) && (var_11 != L'\0')) {
    local_3c = var_12 | 1;
  }
  var_4 = var_13(var_9,var_7,local_3c);
  var_14(var_7);
  return var_4;
}


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

undefined8
MASKED(undefined4 param_1,undefined8 param_2,long *param_3,int param_4,uint param_5)

{
  undefined1 *puVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  long *plVar4;
  uint local_3c;
  
  if (param_3 == (long *)0x0) {
    plVar4 = (long *)0x0;
  }
  else {
    plVar4 = (long *)0x0;
    do {
      puVar1 = (undefined1 *)FUN_001609f0(param_1,param_2,*(undefined8 *)param_3[1]);
      puVar2 = (undefined8 *)alloc_word_desc();
      if (puVar1 == (undefined1 *)0x0) {
        puVar1 = (undefined1 *)xmalloc(1);
        *puVar1 = 0;
      }
      *puVar2 = puVar1;
      plVar4 = (long *)make_word_list(puVar2,plVar4);
      param_3 = (long *)*param_3;
    } while (param_3 != (long *)0x0);
    if ((plVar4 != (long *)0x0) && (*plVar4 != 0)) {
      plVar4 = (long *)list_reverse(plVar4);
    }
  }
  local_3c = param_5;
  if (((param_4 == 0x2a) && (DAT_002157e0 != 0)) && (ifs_is_null != 0)) {
    local_3c = param_5 | 1;
  }
  uVar3 = string_list_pos_params(param_4,plVar4,local_3c);
  dispose_words(plVar4);
  return uVar3;
}

