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

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

{
  uint uVar1;
  WORD_DESC *word;
  char *pcVar2;
  WORD_LIST *wlink;
  
  wlink = (WORD_LIST *)0x0;
  if (list != (WORD_LIST *)0x0) {
    do {
      pcVar2 = string_transform(xc,v,list->word->word);
      word = alloc_word_desc();
      if (pcVar2 == (char *)0x0) {
        pcVar2 = (char *)xmalloc(1);
        *pcVar2 = '\0';
      }
      word->word = pcVar2;
      wlink = make_word_list(word,wlink);
      list = list->next;
    } while (list != (word_list *)0x0);
    if (wlink != (WORD_LIST *)0x0) {
      if (wlink->next != (word_list *)0x0) {
        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);
      }
      goto LAB_0006d130;
    }
  }
  wlink = (WORD_LIST *)0x0;
LAB_0006d130:
  uVar1 = quoted;
  if (((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&
     (uVar1 = quoted | 1, ifs_is_null == 0)) {
    uVar1 = quoted;
  }
  quoted = uVar1;
  pcVar2 = string_list_pos_params(itype,wlink,quoted);
  dispose_words(wlink);
  return pcVar2;
}



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

undefined4 FUN_0006d090(int param_1,uint param_2)

{
  uint uVar1;
  undefined1 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int *in_ECX;
  int *piVar5;
  
  piVar5 = (int *)0x0;
  if (in_ECX != (int *)0x0) {
    do {
      puVar2 = (undefined1 *)FUN_0006b430();
      puVar3 = (undefined4 *)alloc_word_desc();
      if (puVar2 == (undefined1 *)0x0) {
        puVar2 = (undefined1 *)xmalloc(1);
        *puVar2 = 0;
      }
      *puVar3 = puVar2;
      piVar5 = (int *)make_word_list(puVar3,piVar5);
      in_ECX = (int *)*in_ECX;
    } while (in_ECX != (int *)0x0);
    if (piVar5 != (int *)0x0) {
      if (*piVar5 != 0) {
        piVar5 = (int *)list_reverse(piVar5);
      }
      goto LAB_0006d130;
    }
  }
  piVar5 = (int *)0x0;
LAB_0006d130:
  uVar1 = param_2;
  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {
    uVar1 = param_2;
  }
  param_2 = uVar1;
  uVar4 = string_list_pos_params(param_1,piVar5,param_2);
  dispose_words(piVar5);
  return uVar4;
}


PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x00031ed0
ADD EBX,0xdcf63
SUB ESP,0x1c
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP + 0x8],EDX
TEST ECX,ECX
JNZ 0x0006d0d7
JMP 0x0006d190
SUB ESP,0x8
MOV dword ptr [ECX],EBP
PUSH EDI
PUSH ECX
CALL 0x00042ca0
MOV ESI,dword ptr [ESI]
ADD ESP,0x10
MOV EDI,EAX
TEST ESI,ESI
JZ 0x0006d118
MOV EAX,dword ptr [ESI + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [EAX]
MOV EAX,dword ptr [ESP + 0x4]
CALL 0x0006b430
MOV EBP,EAX
CALL 0x00042a00
MOV ECX,EAX
TEST EBP,EBP
JNZ 0x0006d0c0
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
PUSH 0x1
CALL 0x00099200
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV byte ptr [EAX],0x0
MOV EBP,EAX
JMP 0x0006d0c0
TEST EAX,EAX
JZ 0x0006d190
MOV ESI,dword ptr [EAX]
TEST ESI,ESI
JZ 0x0006d130
SUB ESP,0xc
PUSH EAX
CALL 0x000915d0
ADD ESP,0x10
MOV EDI,EAX
CMP dword ptr [ESP + 0x30],0x2a
JZ 0x0006d160
SUB ESP,0x4
PUSH dword ptr [ESP + 0x38]
PUSH EDI
PUSH dword ptr [ESP + 0x3c]
CALL 0x0006cf20
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x00046900
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV ECX,dword ptr [EBX + 0x7068]
TEST ECX,ECX
JZ 0x0006d137
LEA EDX,[EBX + 0xcfa8]
MOV EAX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [EDX]
OR EAX,0x1
TEST EDX,EDX
CMOVZ EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0x34],EAX
JMP 0x0006d137
XOR EDI,EDI
JMP 0x0006d130
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0006d090(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 FUN_0006d090(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0006d090(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }" if (parenthesized_expression "(in_ECX != (int *)0x0)" ( (binary_expression "in_ECX != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }" { (do_statement "do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);" do (compound_statement "{\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    }" { (expression_statement "puVar2 = (undefined1 *)FUN_0006b430();" (assignment_expression "puVar2 = (undefined1 *)FUN_0006b430()" identifier = (cast_expression "(undefined1 *)FUN_0006b430()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b430()" identifier (argument_list "()" ( ))))) ;) (expression_statement "puVar3 = (undefined4 *)alloc_word_desc();" (assignment_expression "puVar3 = (undefined4 *)alloc_word_desc()" identifier = (cast_expression "(undefined4 *)alloc_word_desc()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "alloc_word_desc()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }" { (expression_statement "puVar2 = (undefined1 *)xmalloc(1);" (assignment_expression "puVar2 = (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 "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "piVar5 = (int *)make_word_list(puVar3,piVar5);" (assignment_expression "piVar5 = (int *)make_word_list(puVar3,piVar5)" identifier = (cast_expression "(int *)make_word_list(puVar3,piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_word_list(puVar3,piVar5)" identifier (argument_list "(puVar3,piVar5)" ( identifier , identifier ))))) ;) (expression_statement "in_ECX = (int *)*in_ECX;" (assignment_expression "in_ECX = (int *)*in_ECX" identifier = (cast_expression "(int *)*in_ECX" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_ECX" * identifier))) ;) }) while (parenthesized_expression "(in_ECX != (int *)0x0)" ( (binary_expression "in_ECX != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }" { (if_statement "if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n        piVar5 = (int *)list_reverse(piVar5);\n      }" { (expression_statement "piVar5 = (int *)list_reverse(piVar5);" (assignment_expression "piVar5 = (int *)list_reverse(piVar5)" identifier = (cast_expression "(int *)list_reverse(piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))))) ;) })) (goto_statement "goto LAB_0006d130;" goto statement_identifier ;) })) })) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0006d130:\n  uVar1 = param_2;" statement_identifier : (expression_statement "uVar1 = param_2;" (assignment_expression "uVar1 = param_2" identifier = identifier) ;)) (if_statement "if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }" if (parenthesized_expression "(((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0))" ( (binary_expression "((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)" (parenthesized_expression "((param_1 == 0x2a) && (DAT_00151068 != 0))" ( (binary_expression "(param_1 == 0x2a) && (DAT_00151068 != 0)" (parenthesized_expression "(param_1 == 0x2a)" ( (binary_expression "param_1 == 0x2a" identifier == number_literal) )) && (parenthesized_expression "(DAT_00151068 != 0)" ( (binary_expression "DAT_00151068 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(uVar1 = param_2 | 1, ifs_is_null == 0)" ( (comma_expression "uVar1 = param_2 | 1, ifs_is_null == 0" (assignment_expression "uVar1 = param_2 | 1" identifier = (binary_expression "param_2 | 1" identifier | number_literal)) , (binary_expression "ifs_is_null == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    uVar1 = param_2;\n  }" { (expression_statement "uVar1 = param_2;" (assignment_expression "uVar1 = param_2" identifier = identifier) ;) })) (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) (expression_statement "uVar4 = string_list_pos_params(param_1,piVar5,param_2);" (assignment_expression "uVar4 = string_list_pos_params(param_1,piVar5,param_2)" identifier = (call_expression "string_list_pos_params(param_1,piVar5,param_2)" identifier (argument_list "(param_1,piVar5,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "dispose_words(piVar5);" (call_expression "dispose_words(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 list_transform(int xc,SHELL_VAR *v,WORD_LIST *list,int itype,int quoted)\n\n{\n  uint uVar1;\n  WORD_DESC *word;\n  char *pcVar2;\n  WORD_LIST *wlink;\n  \n  wlink = (WORD_LIST *)0x0;\n  if (list != (WORD_LIST *)0x0) {\n    do {\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  wlink = (WORD_LIST *)0x0;\nLAB_0006d130:\n  uVar1 = quoted;\n  if (((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&\n     (uVar1 = quoted | 1, ifs_is_null == 0)) {\n    uVar1 = quoted;\n  }\n  quoted = uVar1;\n  pcVar2 = string_list_pos_params(itype,wlink,quoted);\n  dispose_words(wlink);\n  return pcVar2;\n}\n\n" comment (function_definition "char * __regparm3 list_transform(int xc,SHELL_VAR *v,WORD_LIST *list,int itype,int quoted)\n\n{\n  uint uVar1;\n  WORD_DESC *word;\n  char *pcVar2;\n  WORD_LIST *wlink;\n  \n  wlink = (WORD_LIST *)0x0;\n  if (list != (WORD_LIST *)0x0) {\n    do {\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  wlink = (WORD_LIST *)0x0;\nLAB_0006d130:\n  uVar1 = quoted;\n  if (((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&\n     (uVar1 = quoted | 1, ifs_is_null == 0)) {\n    uVar1 = quoted;\n  }\n  quoted = uVar1;\n  pcVar2 = string_list_pos_params(itype,wlink,quoted);\n  dispose_words(wlink);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* __regparm3 list_transform(int xc,SHELL_VAR *v,WORD_LIST *list,int itype,int quoted)" * (ERROR "__regparm3" identifier) (function_declarator "list_transform(int xc,SHELL_VAR *v,WORD_LIST *list,int itype,int quoted)" identifier (parameter_list "(int xc,SHELL_VAR *v,WORD_LIST *list,int itype,int quoted)" ( (parameter_declaration "int xc" primitive_type 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 "int itype" primitive_type identifier) , (parameter_declaration "int quoted" primitive_type identifier) )))) (compound_statement "{\n  uint uVar1;\n  WORD_DESC *word;\n  char *pcVar2;\n  WORD_LIST *wlink;\n  \n  wlink = (WORD_LIST *)0x0;\n  if (list != (WORD_LIST *)0x0) {\n    do {\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  wlink = (WORD_LIST *)0x0;\nLAB_0006d130:\n  uVar1 = quoted;\n  if (((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&\n     (uVar1 = quoted | 1, ifs_is_null == 0)) {\n    uVar1 = quoted;\n  }\n  quoted = uVar1;\n  pcVar2 = string_list_pos_params(itype,wlink,quoted);\n  dispose_words(wlink);\n  return pcVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "WORD_DESC *word;" type_identifier (pointer_declarator "*word" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "WORD_LIST *wlink;" type_identifier (pointer_declarator "*wlink" * identifier) ;) (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)) ;) (if_statement "if (list != (WORD_LIST *)0x0) {\n    do {\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\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    do {\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);\n    if (wlink != (WORD_LIST *)0x0) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\n    }\n  }" { (do_statement "do {\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    } while (list != (word_list *)0x0);" do (compound_statement "{\n      pcVar2 = string_transform(xc,v,list->word->word);\n      word = alloc_word_desc();\n      if (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }\n      word->word = pcVar2;\n      wlink = make_word_list(word,wlink);\n      list = list->next;\n    }" { (expression_statement "pcVar2 = string_transform(xc,v,list->word->word);" (assignment_expression "pcVar2 = 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 (pcVar2 == (char *)0x0) {\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar2 = (char *)xmalloc(1);\n        *pcVar2 = '\0';\n      }" { (expression_statement "pcVar2 = (char *)xmalloc(1);" (assignment_expression "pcVar2 = (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 "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "word->word = pcVar2;" (assignment_expression "word->word = pcVar2" (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) {\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\n    }" if (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)) )) (compound_statement "{\n      if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }\n      goto LAB_0006d130;\n    }" { (if_statement "if (wlink->next != (word_list *)0x0) {\n        wlink = (WORD_LIST *)list_reverse((GENERIC_LIST *)wlink);\n      }" if (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) ))))) ;) })) (goto_statement "goto LAB_0006d130;" goto statement_identifier ;) })) })) (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)) ;) (labeled_statement "LAB_0006d130:\n  uVar1 = quoted;" statement_identifier : (expression_statement "uVar1 = quoted;" (assignment_expression "uVar1 = quoted" identifier = identifier) ;)) (if_statement "if (((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&\n     (uVar1 = quoted | 1, ifs_is_null == 0)) {\n    uVar1 = quoted;\n  }" if (parenthesized_expression "(((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&\n     (uVar1 = quoted | 1, ifs_is_null == 0))" ( (binary_expression "((itype == 0x2a) && (expand_no_split_dollar_star != 0)) &&\n     (uVar1 = quoted | 1, ifs_is_null == 0)" (parenthesized_expression "((itype == 0x2a) && (expand_no_split_dollar_star != 0))" ( (binary_expression "(itype == 0x2a) && (expand_no_split_dollar_star != 0)" (parenthesized_expression "(itype == 0x2a)" ( (binary_expression "itype == 0x2a" identifier == number_literal) )) && (parenthesized_expression "(expand_no_split_dollar_star != 0)" ( (binary_expression "expand_no_split_dollar_star != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(uVar1 = quoted | 1, ifs_is_null == 0)" ( (comma_expression "uVar1 = quoted | 1, ifs_is_null == 0" (assignment_expression "uVar1 = quoted | 1" identifier = (binary_expression "quoted | 1" identifier | number_literal)) , (binary_expression "ifs_is_null == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    uVar1 = quoted;\n  }" { (expression_statement "uVar1 = quoted;" (assignment_expression "uVar1 = quoted" identifier = identifier) ;) })) (expression_statement "quoted = uVar1;" (assignment_expression "quoted = uVar1" identifier = identifier) ;) (expression_statement "pcVar2 = string_list_pos_params(itype,wlink,quoted);" (assignment_expression "pcVar2 = string_list_pos_params(itype,wlink,quoted)" identifier = (call_expression "string_list_pos_params(itype,wlink,quoted)" identifier (argument_list "(itype,wlink,quoted)" ( identifier , identifier , identifier )))) ;) (expression_statement "dispose_words(wlink);" (call_expression "dispose_words(wlink)" identifier (argument_list "(wlink)" ( identifier ))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0006d090(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_0006d090(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0006d090(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int *in_ECX;" primitive_type (pointer_declarator "*in_ECX" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }" if (parenthesized_expression "(in_ECX != (int *)0x0)" ( (binary_expression "in_ECX != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }" { (do_statement "do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);" do (compound_statement "{\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    }" { (expression_statement "puVar2 = (undefined1 *)FUN_0006b430();" (assignment_expression "puVar2 = (undefined1 *)FUN_0006b430()" identifier = (cast_expression "(undefined1 *)FUN_0006b430()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0006b430()" identifier (argument_list "()" ( ))))) ;) (expression_statement "puVar3 = (undefined4 *)alloc_word_desc();" (assignment_expression "puVar3 = (undefined4 *)alloc_word_desc()" identifier = (cast_expression "(undefined4 *)alloc_word_desc()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "alloc_word_desc()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }" { (expression_statement "puVar2 = (undefined1 *)xmalloc(1);" (assignment_expression "puVar2 = (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 "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) })) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" * identifier) = identifier) ;) (expression_statement "piVar5 = (int *)make_word_list(puVar3,piVar5);" (assignment_expression "piVar5 = (int *)make_word_list(puVar3,piVar5)" identifier = (cast_expression "(int *)make_word_list(puVar3,piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "make_word_list(puVar3,piVar5)" identifier (argument_list "(puVar3,piVar5)" ( identifier , identifier ))))) ;) (expression_statement "in_ECX = (int *)*in_ECX;" (assignment_expression "in_ECX = (int *)*in_ECX" identifier = (cast_expression "(int *)*in_ECX" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*in_ECX" * identifier))) ;) }) while (parenthesized_expression "(in_ECX != (int *)0x0)" ( (binary_expression "in_ECX != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (if_statement "if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }" { (if_statement "if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }" if (parenthesized_expression "(*piVar5 != 0)" ( (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" * identifier) != number_literal) )) (compound_statement "{\n        piVar5 = (int *)list_reverse(piVar5);\n      }" { (expression_statement "piVar5 = (int *)list_reverse(piVar5);" (assignment_expression "piVar5 = (int *)list_reverse(piVar5)" identifier = (cast_expression "(int *)list_reverse(piVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "list_reverse(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))))) ;) })) (goto_statement "goto LAB_0006d130;" goto statement_identifier ;) })) })) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0006d130:\n  uVar1 = param_2;" statement_identifier : (expression_statement "uVar1 = param_2;" (assignment_expression "uVar1 = param_2" identifier = identifier) ;)) (if_statement "if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }" if (parenthesized_expression "(((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0))" ( (binary_expression "((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)" (parenthesized_expression "((param_1 == 0x2a) && (DAT_00151068 != 0))" ( (binary_expression "(param_1 == 0x2a) && (DAT_00151068 != 0)" (parenthesized_expression "(param_1 == 0x2a)" ( (binary_expression "param_1 == 0x2a" identifier == number_literal) )) && (parenthesized_expression "(DAT_00151068 != 0)" ( (binary_expression "DAT_00151068 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(uVar1 = param_2 | 1, ifs_is_null == 0)" ( (comma_expression "uVar1 = param_2 | 1, ifs_is_null == 0" (assignment_expression "uVar1 = param_2 | 1" identifier = (binary_expression "param_2 | 1" identifier | number_literal)) , (binary_expression "ifs_is_null == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    uVar1 = param_2;\n  }" { (expression_statement "uVar1 = param_2;" (assignment_expression "uVar1 = param_2" identifier = identifier) ;) })) (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" identifier = identifier) ;) (expression_statement "uVar4 = string_list_pos_params(param_1,piVar5,param_2);" (assignment_expression "uVar4 = string_list_pos_params(param_1,piVar5,param_2)" identifier = (call_expression "string_list_pos_params(param_1,piVar5,param_2)" identifier (argument_list "(param_1,piVar5,param_2)" ( identifier , identifier , identifier )))) ;) (expression_statement "dispose_words(piVar5);" (call_expression "dispose_words(piVar5)" identifier (argument_list "(piVar5)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (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 TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (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 ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT | LIT)) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 "undefined4 FUN_0006d090(int param_1,uint param_2)\n\n{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_0006d090(int param_1,uint param_2)" (identifier "FUN_0006d090") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined1 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  int *in_ECX;\n  int *piVar5;\n  \n  piVar5 = (int *)0x0;\n  if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }\n  piVar5 = (int *)0x0;\nLAB_0006d130:\n  uVar1 = param_2;\n  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }\n  param_2 = uVar1;\n  uVar4 = string_list_pos_params(param_1,piVar5,param_2);\n  dispose_words(piVar5);\n  return uVar4;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int *in_ECX;" (primitive_type "int") (pointer_declarator "*in_ECX" (* "*") (identifier "in_ECX")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" (identifier "piVar5") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (in_ECX != (int *)0x0) {\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }" (if "if") (parenthesized_expression "(in_ECX != (int *)0x0)" (( "(") (binary_expression "in_ECX != (int *)0x0" (identifier "in_ECX") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);\n    if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }\n  }" ({ "{") (do_statement "do {\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    } while (in_ECX != (int *)0x0);" (do "do") (compound_statement "{\n      puVar2 = (undefined1 *)FUN_0006b430();\n      puVar3 = (undefined4 *)alloc_word_desc();\n      if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }\n      *puVar3 = puVar2;\n      piVar5 = (int *)make_word_list(puVar3,piVar5);\n      in_ECX = (int *)*in_ECX;\n    }" ({ "{") (expression_statement "puVar2 = (undefined1 *)FUN_0006b430();" (assignment_expression "puVar2 = (undefined1 *)FUN_0006b430()" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_0006b430()" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0006b430()" (identifier "FUN_0006b430") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "puVar3 = (undefined4 *)alloc_word_desc();" (assignment_expression "puVar3 = (undefined4 *)alloc_word_desc()" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)alloc_word_desc()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "alloc_word_desc()" (identifier "alloc_word_desc") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) {\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar2 = (undefined1 *)xmalloc(1);\n        *puVar2 = 0;\n      }" ({ "{") (expression_statement "puVar2 = (undefined1 *)xmalloc(1);" (assignment_expression "puVar2 = (undefined1 *)xmalloc(1)" (identifier "puVar2") (= "=") (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 "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*puVar3 = puVar2;" (assignment_expression "*puVar3 = puVar2" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "piVar5 = (int *)make_word_list(puVar3,piVar5);" (assignment_expression "piVar5 = (int *)make_word_list(puVar3,piVar5)" (identifier "piVar5") (= "=") (cast_expression "(int *)make_word_list(puVar3,piVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "make_word_list(puVar3,piVar5)" (identifier "make_word_list") (argument_list "(puVar3,piVar5)" (( "(") (identifier "puVar3") (, ",") (identifier "piVar5") () ")"))))) (; ";")) (expression_statement "in_ECX = (int *)*in_ECX;" (assignment_expression "in_ECX = (int *)*in_ECX" (identifier "in_ECX") (= "=") (cast_expression "(int *)*in_ECX" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*in_ECX" (* "*") (identifier "in_ECX")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(in_ECX != (int *)0x0)" (( "(") (binary_expression "in_ECX != (int *)0x0" (identifier "in_ECX") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }\n      goto LAB_0006d130;\n    }" ({ "{") (if_statement "if (*piVar5 != 0) {\n        piVar5 = (int *)list_reverse(piVar5);\n      }" (if "if") (parenthesized_expression "(*piVar5 != 0)" (( "(") (binary_expression "*piVar5 != 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar5 = (int *)list_reverse(piVar5);\n      }" ({ "{") (expression_statement "piVar5 = (int *)list_reverse(piVar5);" (assignment_expression "piVar5 = (int *)list_reverse(piVar5)" (identifier "piVar5") (= "=") (cast_expression "(int *)list_reverse(piVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "list_reverse(piVar5)" (identifier "list_reverse") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))))) (; ";")) (} "}"))) (goto_statement "goto LAB_0006d130;" (goto "goto") (statement_identifier "LAB_0006d130") (; ";")) (} "}"))) (} "}"))) (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" (identifier "piVar5") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_0006d130:\n  uVar1 = param_2;" (statement_identifier "LAB_0006d130") (: ":") (expression_statement "uVar1 = param_2;" (assignment_expression "uVar1 = param_2" (identifier "uVar1") (= "=") (identifier "param_2")) (; ";"))) (if_statement "if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {\n    uVar1 = param_2;\n  }" (if "if") (parenthesized_expression "(((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0))" (( "(") (binary_expression "((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)" (parenthesized_expression "((param_1 == 0x2a) && (DAT_00151068 != 0))" (( "(") (binary_expression "(param_1 == 0x2a) && (DAT_00151068 != 0)" (parenthesized_expression "(param_1 == 0x2a)" (( "(") (binary_expression "param_1 == 0x2a" (identifier "param_1") (== "==") (number_literal "0x2a")) () ")")) (&& "&&") (parenthesized_expression "(DAT_00151068 != 0)" (( "(") (binary_expression "DAT_00151068 != 0" (identifier "DAT_00151068") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = param_2 | 1, ifs_is_null == 0)" (( "(") (comma_expression "uVar1 = param_2 | 1, ifs_is_null == 0" (assignment_expression "uVar1 = param_2 | 1" (identifier "uVar1") (= "=") (binary_expression "param_2 | 1" (identifier "param_2") (| "|") (number_literal "1"))) (, ",") (binary_expression "ifs_is_null == 0" (identifier "ifs_is_null") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    uVar1 = param_2;\n  }" ({ "{") (expression_statement "uVar1 = param_2;" (assignment_expression "uVar1 = param_2" (identifier "uVar1") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (expression_statement "param_2 = uVar1;" (assignment_expression "param_2 = uVar1" (identifier "param_2") (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar4 = string_list_pos_params(param_1,piVar5,param_2);" (assignment_expression "uVar4 = string_list_pos_params(param_1,piVar5,param_2)" (identifier "uVar4") (= "=") (call_expression "string_list_pos_params(param_1,piVar5,param_2)" (identifier "string_list_pos_params") (argument_list "(param_1,piVar5,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "piVar5") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "dispose_words(piVar5);" (call_expression "dispose_words(piVar5)" (identifier "dispose_words") (argument_list "(piVar5)" (( "(") (identifier "piVar5") () ")"))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

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

char * __regparm3 function_1(int xc,type_1 *v,type_2 *var_1,int var_9,int var_11)

{
  type_3 uVar1;
  type_4 *word;
  char *var_4;
  type_2 *var_7;
  
  var_7 = (type_2 *)0x0;
  if (var_1 != (type_2 *)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_2 *)0x0) {
      if (var_7->next != (type_5 *)0x0) {
        var_7 = (type_2 *)var_8((type_6 *)var_7);
      }
      goto LAB_0006d130;
    }
  }
  var_7 = (type_2 *)0x0;
LAB_0006d130:
  uVar1 = var_11;
  if (((var_9 == 0x2a) && (var_10 != 0)) &&
     (uVar1 = var_11 | 1, var_12 == 0)) {
    uVar1 = var_11;
  }
  var_11 = uVar1;
  var_4 = var_13(var_9,var_7,var_11);
  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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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))))) (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: (primitive_type) 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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (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 (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (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)))))

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

undefined4 MASKED(int param_1,uint param_2)

{
  uint uVar1;
  undefined1 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  int *in_ECX;
  int *piVar5;
  
  piVar5 = (int *)0x0;
  if (in_ECX != (int *)0x0) {
    do {
      puVar2 = (undefined1 *)FUN_0006b430();
      puVar3 = (undefined4 *)alloc_word_desc();
      if (puVar2 == (undefined1 *)0x0) {
        puVar2 = (undefined1 *)xmalloc(1);
        *puVar2 = 0;
      }
      *puVar3 = puVar2;
      piVar5 = (int *)make_word_list(puVar3,piVar5);
      in_ECX = (int *)*in_ECX;
    } while (in_ECX != (int *)0x0);
    if (piVar5 != (int *)0x0) {
      if (*piVar5 != 0) {
        piVar5 = (int *)list_reverse(piVar5);
      }
      goto LAB_0006d130;
    }
  }
  piVar5 = (int *)0x0;
LAB_0006d130:
  uVar1 = param_2;
  if (((param_1 == 0x2a) && (DAT_00151068 != 0)) && (uVar1 = param_2 | 1, ifs_is_null == 0)) {
    uVar1 = param_2;
  }
  param_2 = uVar1;
  uVar4 = string_list_pos_params(param_1,piVar5,param_2);
  dispose_words(piVar5);
  return uVar4;
}

