
STRINGLIST * completions_to_stringlist(char **matches)

{
  int iVar1;
  STRINGLIST *pSVar2;
  char **ppcVar3;
  char **ppcVar4;
  char **ppcVar5;
  
  if (matches == (char **)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);
    return pSVar2;
  }
  iVar1 = (*(code *)PTR_strvec_len_00144cc8)();
  pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);
  if (*matches != (char *)0x0) {
    if (matches[1] == (char *)0x0) {
      iVar1 = (*(code *)PTR_strlen_00146390)();
                    /* WARNING: Subroutine does not return */
      xmalloc(iVar1 + 1);
    }
    if (iVar1 < 2) {
      ppcVar3 = pSVar2->list;
      iVar1 = 0;
    }
    else {
      ppcVar4 = matches + 1;
      do {
        if (*ppcVar4 != (char *)0x0) {
          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);
                    /* WARNING: Subroutine does not return */
          xmalloc(iVar1 + 1);
        }
        ppcVar3 = pSVar2->list;
        ppcVar5 = ppcVar4 + 1;
        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;
        ppcVar4 = ppcVar5;
      } while (ppcVar5 != matches + iVar1);
      iVar1 = iVar1 + -1;
      ppcVar3 = ppcVar3 + iVar1;
    }
    pSVar2->list_len = iVar1;
    *ppcVar3 = (char *)0x0;
  }
  return pSVar2;
}



int * completions_to_stringlist(int *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  int *piVar7;
  int *piVar8;
  
  if (param_1 != (int *)0x0) {
    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();
    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);
    if (*param_1 != 0) {
      if (param_1[1] == 0) {
        iVar1 = (*(code *)PTR_strlen_00146390)();
        uVar4 = xmalloc(iVar1 + 1);
        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);
        puVar6 = (undefined4 *)*piVar2;
        *puVar6 = uVar4;
        piVar2[2] = 1;
        puVar6[1] = 0;
      }
      else {
        if (iVar1 < 2) {
          puVar6 = (undefined4 *)*piVar2;
          iVar1 = 0;
        }
        else {
          piVar7 = param_1 + 1;
          do {
            iVar3 = *piVar7;
            if (iVar3 != 0) {
              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);
              uVar4 = xmalloc(iVar3 + 1);
              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);
            }
            iVar5 = *piVar2;
            piVar8 = piVar7 + 1;
            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;
            piVar7 = piVar8;
          } while (piVar8 != param_1 + iVar1);
          iVar1 = iVar1 + -1;
          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);
        }
        piVar2[2] = iVar1;
        *puVar6 = 0;
      }
    }
    return piVar2;
  }
                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);
  return piVar2;
}


lui gp,0xa
addiu gp,gp,0x1c8c
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x000aa9c8
_sw s0,0x18(sp)
lw t9,-0x7878(gp)
jalr t9
_or s4,a0,zero
lw gp,0x10(sp)
addiu a0,v0,0x1
lw t9,-0x6dc8(gp)
jalr t9
_or s2,v0,zero
lw a0,0x0(s4)
or s3,v0,zero
beq a0,zero,0x000aa9a4
_lw gp,0x10(sp)
lw v0,0x4(s4)
beq v0,zero,0x000aa9fc
_slti v0,s2,0x2
bne v0,zero,0x000aa9f0
_sll s1,s2,0x2
li v0,-0x4
addiu s0,s4,0x4
addu s1,s4,s1
subu s4,v0,s4
lw v0,0x0(s0)
lw t9,-0x61b0(gp)
beq v0,zero,0x000aa978
_or a0,v0,zero
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x6128(gp)
jalr t9
_lw a1,0x0(s0)
lw gp,0x10(sp)
lw a1,0x0(s3)
addu v1,a1,s0
addiu s0,s0,0x4
addu v1,v1,s4
bne s0,s1,0x000aa938
_sw v0,0x0(v1)
addiu s2,s2,-0x1
sll v0,s2,0x2
addu a1,a1,v0
sw s2,0x8(s3)
sw zero,0x0(a1)
lw ra,0x2c(sp)
or v0,s3,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw ra,0x2c(sp)
li a0,0x1
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
lw t9,-0x6dc8(gp)
jr t9
_addiu sp,sp,0x30
lw a1,0x0(s3)
b 0x000aa99c
_or s2,zero,zero
lw t9,-0x61b0(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x6128(gp)
jalr t9
_lw a1,0x0(s4)
lw v1,0x0(s3)
sw v0,0x0(v1)
li v0,0x1
sw v0,0x8(s3)
b 0x000aa9a4
_sw zero,0x4(v1)
(translation_unit "int * completions_to_stringlist(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}\n\n" (function_definition "int * completions_to_stringlist(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}" primitive_type (pointer_declarator "* completions_to_stringlist(int *param_1)" * (function_declarator "completions_to_stringlist(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (if_statement "if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strvec_len_00144cc8)();" (assignment_expression "iVar1 = (*(code *)PTR_strvec_len_00144cc8)()" identifier = (call_expression "(*(code *)PTR_strvec_len_00144cc8)()" (parenthesized_expression "(*(code *)PTR_strvec_len_00144cc8)" ( (pointer_expression "*(code *)PTR_strvec_len_00144cc8" * (cast_expression "(code *)PTR_strvec_len_00144cc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" identifier = (cast_expression "(int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" ( (pointer_expression "*(code *)PTR_strlist_create_00145778" * (cast_expression "(code *)PTR_strlist_create_00145778" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }" { (if_statement "if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = xmalloc(iVar1 + 1);" (assignment_expression "uVar4 = xmalloc(iVar1 + 1)" identifier = (call_expression "xmalloc(iVar1 + 1)" identifier (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);" (assignment_expression "uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar4,*param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,*param_1)" ( identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "puVar6 = (undefined4 *)*piVar2;" (assignment_expression "puVar6 = (undefined4 *)*piVar2" identifier = (cast_expression "(undefined4 *)*piVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6[1] = 0;" (assignment_expression "puVar6[1] = 0" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" else (compound_statement "{\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" { (if_statement "if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" if (parenthesized_expression "(iVar1 < 2)" ( (binary_expression "iVar1 < 2" identifier < number_literal) )) (compound_statement "{\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }" { (expression_statement "puVar6 = (undefined4 *)*piVar2;" (assignment_expression "puVar6 = (undefined4 *)*piVar2" identifier = (cast_expression "(undefined4 *)*piVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" else (compound_statement "{\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" { (expression_statement "piVar7 = param_1 + 1;" (assignment_expression "piVar7 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (do_statement "do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);" do (compound_statement "{\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          }" { (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00146390)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar4 = xmalloc(iVar3 + 1);" (assignment_expression "uVar4 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);" (assignment_expression "iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar4,*piVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,*piVar7)" ( identifier , (pointer_expression "*piVar7" * identifier) )))) ;) })) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar8 = piVar7 + 1;" (assignment_expression "piVar8 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;" (assignment_expression "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3" (pointer_expression "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5)" * (cast_expression "(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar7 + (-4 - (int)param_1) + iVar5)" ( (binary_expression "(int)piVar7 + (-4 - (int)param_1) + iVar5" (binary_expression "(int)piVar7 + (-4 - (int)param_1)" (cast_expression "(int)piVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-4 - (int)param_1)" ( (binary_expression "-4 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + identifier) )))) = identifier) ;) (expression_statement "piVar7 = piVar8;" (assignment_expression "piVar7 = piVar8" identifier = identifier) ;) }) while (parenthesized_expression "(piVar8 != param_1 + iVar1)" ( (binary_expression "piVar8 != param_1 + iVar1" identifier != (binary_expression "param_1 + iVar1" identifier + identifier)) )) ;) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);" (assignment_expression "puVar6 = (undefined4 *)(iVar5 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(iVar5 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar1 * 4)" ( (binary_expression "iVar5 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) }))) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }))) })) (return_statement "return piVar2;" return identifier ;) })) comment comment (expression_statement "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1)" identifier = (cast_expression "(int *)(*(code *)PTR_strlist_create_00145778)(1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strlist_create_00145778)(1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" ( (pointer_expression "*(code *)PTR_strlist_create_00145778" * (cast_expression "(code *)PTR_strlist_create_00145778" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))))) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "STRINGLIST * completions_to_stringlist(char **matches)\n\n{\n  int iVar1;\n  STRINGLIST *pSVar2;\n  char **ppcVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  \n  if (matches == (char **)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);\n    return pSVar2;\n  }\n  iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n  pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n  if (*matches != (char *)0x0) {\n    if (matches[1] == (char *)0x0) {\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }\n    if (iVar1 < 2) {\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }\n    else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }\n    pSVar2->list_len = iVar1;\n    *ppcVar3 = (char *)0x0;\n  }\n  return pSVar2;\n}\n\n" (function_definition "STRINGLIST * completions_to_stringlist(char **matches)\n\n{\n  int iVar1;\n  STRINGLIST *pSVar2;\n  char **ppcVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  \n  if (matches == (char **)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);\n    return pSVar2;\n  }\n  iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n  pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n  if (*matches != (char *)0x0) {\n    if (matches[1] == (char *)0x0) {\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }\n    if (iVar1 < 2) {\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }\n    else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }\n    pSVar2->list_len = iVar1;\n    *ppcVar3 = (char *)0x0;\n  }\n  return pSVar2;\n}" type_identifier (pointer_declarator "* completions_to_stringlist(char **matches)" * (function_declarator "completions_to_stringlist(char **matches)" identifier (parameter_list "(char **matches)" ( (parameter_declaration "char **matches" primitive_type (pointer_declarator "**matches" * (pointer_declarator "*matches" * identifier))) )))) (compound_statement "{\n  int iVar1;\n  STRINGLIST *pSVar2;\n  char **ppcVar3;\n  char **ppcVar4;\n  char **ppcVar5;\n  \n  if (matches == (char **)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);\n    return pSVar2;\n  }\n  iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n  pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n  if (*matches != (char *)0x0) {\n    if (matches[1] == (char *)0x0) {\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }\n    if (iVar1 < 2) {\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }\n    else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }\n    pSVar2->list_len = iVar1;\n    *ppcVar3 = (char *)0x0;\n  }\n  return pSVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "STRINGLIST *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "char **ppcVar3;" primitive_type (pointer_declarator "**ppcVar3" * (pointer_declarator "*ppcVar3" * identifier)) ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "char **ppcVar5;" primitive_type (pointer_declarator "**ppcVar5" * (pointer_declarator "*ppcVar5" * identifier)) ;) (if_statement "if (matches == (char **)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);\n    return pSVar2;\n  }" if (parenthesized_expression "(matches == (char **)0x0)" ( (binary_expression "matches == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);\n    return pSVar2;\n  }" { comment comment (expression_statement "pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1);" (assignment_expression "pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1)" identifier = (cast_expression "(STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(1)" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strlist_create_00145778)(1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" ( (pointer_expression "*(code *)PTR_strlist_create_00145778" * (cast_expression "(code *)PTR_strlist_create_00145778" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))))) ;) (return_statement "return pSVar2;" return identifier ;) })) (expression_statement "iVar1 = (*(code *)PTR_strvec_len_00144cc8)();" (assignment_expression "iVar1 = (*(code *)PTR_strvec_len_00144cc8)()" identifier = (call_expression "(*(code *)PTR_strvec_len_00144cc8)()" (parenthesized_expression "(*(code *)PTR_strvec_len_00144cc8)" ( (pointer_expression "*(code *)PTR_strvec_len_00144cc8" * (cast_expression "(code *)PTR_strvec_len_00144cc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);" (assignment_expression "pSVar2 = (STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" identifier = (cast_expression "(STRINGLIST *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" ( (pointer_expression "*(code *)PTR_strlist_create_00145778" * (cast_expression "(code *)PTR_strlist_create_00145778" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))))) ;) (if_statement "if (*matches != (char *)0x0) {\n    if (matches[1] == (char *)0x0) {\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }\n    if (iVar1 < 2) {\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }\n    else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }\n    pSVar2->list_len = iVar1;\n    *ppcVar3 = (char *)0x0;\n  }" if (parenthesized_expression "(*matches != (char *)0x0)" ( (binary_expression "*matches != (char *)0x0" (pointer_expression "*matches" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (matches[1] == (char *)0x0) {\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }\n    if (iVar1 < 2) {\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }\n    else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }\n    pSVar2->list_len = iVar1;\n    *ppcVar3 = (char *)0x0;\n  }" { (if_statement "if (matches[1] == (char *)0x0) {\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }" if (parenthesized_expression "(matches[1] == (char *)0x0)" ( (binary_expression "matches[1] == (char *)0x0" (subscript_expression "matches[1]" identifier [ number_literal ]) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = (*(code *)PTR_strlen_00146390)();\n                    /* WARNING: Subroutine does not return */\n      xmalloc(iVar1 + 1);\n    }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) comment (expression_statement "xmalloc(iVar1 + 1);" (call_expression "xmalloc(iVar1 + 1)" identifier (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) })) (if_statement "if (iVar1 < 2) {\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }\n    else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }" if (parenthesized_expression "(iVar1 < 2)" ( (binary_expression "iVar1 < 2" identifier < number_literal) )) (compound_statement "{\n      ppcVar3 = pSVar2->list;\n      iVar1 = 0;\n    }" { (expression_statement "ppcVar3 = pSVar2->list;" (assignment_expression "ppcVar3 = pSVar2->list" identifier = (field_expression "pSVar2->list" identifier -> field_identifier)) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }" else (compound_statement "{\n      ppcVar4 = matches + 1;\n      do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);\n      iVar1 = iVar1 + -1;\n      ppcVar3 = ppcVar3 + iVar1;\n    }" { (expression_statement "ppcVar4 = matches + 1;" (assignment_expression "ppcVar4 = matches + 1" identifier = (binary_expression "matches + 1" identifier + number_literal)) ;) (do_statement "do {\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      } while (ppcVar5 != matches + iVar1);" do (compound_statement "{\n        if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }\n        ppcVar3 = pSVar2->list;\n        ppcVar5 = ppcVar4 + 1;\n        *(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;\n        ppcVar4 = ppcVar5;\n      }" { (if_statement "if (*ppcVar4 != (char *)0x0) {\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }" if (parenthesized_expression "(*ppcVar4 != (char *)0x0)" ( (binary_expression "*ppcVar4 != (char *)0x0" (pointer_expression "*ppcVar4" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);\n                    /* WARNING: Subroutine does not return */\n          xmalloc(iVar1 + 1);\n        }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)(*ppcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(*ppcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*ppcVar4)" ( (pointer_expression "*ppcVar4" * identifier) )))) ;) comment (expression_statement "xmalloc(iVar1 + 1);" (call_expression "xmalloc(iVar1 + 1)" identifier (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))) ;) })) (expression_statement "ppcVar3 = pSVar2->list;" (assignment_expression "ppcVar3 = pSVar2->list" identifier = (field_expression "pSVar2->list" identifier -> field_identifier)) ;) (expression_statement "ppcVar5 = ppcVar4 + 1;" (assignment_expression "ppcVar5 = ppcVar4 + 1" identifier = (binary_expression "ppcVar4 + 1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0;" (assignment_expression "*(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3) = 0" (pointer_expression "*(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3)" * (cast_expression "(undefined4 *)((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3)" ( (binary_expression "(int)ppcVar4 + (-4 - (int)matches) + (int)ppcVar3" (binary_expression "(int)ppcVar4 + (-4 - (int)matches)" (cast_expression "(int)ppcVar4" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-4 - (int)matches)" ( (binary_expression "-4 - (int)matches" number_literal - (cast_expression "(int)matches" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + (cast_expression "(int)ppcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) = number_literal) ;) (expression_statement "ppcVar4 = ppcVar5;" (assignment_expression "ppcVar4 = ppcVar5" identifier = identifier) ;) }) while (parenthesized_expression "(ppcVar5 != matches + iVar1)" ( (binary_expression "ppcVar5 != matches + iVar1" identifier != (binary_expression "matches + iVar1" identifier + identifier)) )) ;) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "ppcVar3 = ppcVar3 + iVar1;" (assignment_expression "ppcVar3 = ppcVar3 + iVar1" identifier = (binary_expression "ppcVar3 + iVar1" identifier + identifier)) ;) }))) (expression_statement "pSVar2->list_len = iVar1;" (assignment_expression "pSVar2->list_len = iVar1" (field_expression "pSVar2->list_len" identifier -> field_identifier) = identifier) ;) (expression_statement "*ppcVar3 = (char *)0x0;" (assignment_expression "*ppcVar3 = (char *)0x0" (pointer_expression "*ppcVar3" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pSVar2;" return identifier ;) })))
(translation_unit "int * completions_to_stringlist(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    \n                    \n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}\n\n" (function_definition "int * completions_to_stringlist(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    \n                    \n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}" primitive_type (pointer_declarator "* completions_to_stringlist(int *param_1)" * (function_declarator "completions_to_stringlist(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    \n                    \n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (if_statement "if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }" if (parenthesized_expression "(param_1 != (int *)0x0)" ( (binary_expression "param_1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strvec_len_00144cc8)();" (assignment_expression "iVar1 = (*(code *)PTR_strvec_len_00144cc8)()" identifier = (call_expression "(*(code *)PTR_strvec_len_00144cc8)()" (parenthesized_expression "(*(code *)PTR_strvec_len_00144cc8)" ( (pointer_expression "*(code *)PTR_strvec_len_00144cc8" * (cast_expression "(code *)PTR_strvec_len_00144cc8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" identifier = (cast_expression "(int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" ( (pointer_expression "*(code *)PTR_strlist_create_00145778" * (cast_expression "(code *)PTR_strlist_create_00145778" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }" { (if_statement "if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" if (parenthesized_expression "(param_1[1] == 0)" ( (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }" { (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = xmalloc(iVar1 + 1);" (assignment_expression "uVar4 = xmalloc(iVar1 + 1)" identifier = (call_expression "xmalloc(iVar1 + 1)" identifier (argument_list "(iVar1 + 1)" ( (binary_expression "iVar1 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);" (assignment_expression "uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar4,*param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,*param_1)" ( identifier , (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "puVar6 = (undefined4 *)*piVar2;" (assignment_expression "puVar6 = (undefined4 *)*piVar2" identifier = (cast_expression "(undefined4 *)*piVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" * identifier) = identifier) ;) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6[1] = 0;" (assignment_expression "puVar6[1] = 0" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" else (compound_statement "{\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" { (if_statement "if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" if (parenthesized_expression "(iVar1 < 2)" ( (binary_expression "iVar1 < 2" identifier < number_literal) )) (compound_statement "{\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }" { (expression_statement "puVar6 = (undefined4 *)*piVar2;" (assignment_expression "puVar6 = (undefined4 *)*piVar2" identifier = (cast_expression "(undefined4 *)*piVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar2" * identifier))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" else (compound_statement "{\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" { (expression_statement "piVar7 = param_1 + 1;" (assignment_expression "piVar7 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (do_statement "do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);" do (compound_statement "{\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          }" { (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" identifier = (pointer_expression "*piVar7" * identifier)) ;) (if_statement "if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00146390)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "uVar4 = xmalloc(iVar3 + 1);" (assignment_expression "uVar4 = xmalloc(iVar3 + 1)" identifier = (call_expression "xmalloc(iVar3 + 1)" identifier (argument_list "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);" (assignment_expression "iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar4,*piVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4,*piVar7)" ( identifier , (pointer_expression "*piVar7" * identifier) )))) ;) })) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "piVar8 = piVar7 + 1;" (assignment_expression "piVar8 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) (expression_statement "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;" (assignment_expression "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3" (pointer_expression "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5)" * (cast_expression "(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar7 + (-4 - (int)param_1) + iVar5)" ( (binary_expression "(int)piVar7 + (-4 - (int)param_1) + iVar5" (binary_expression "(int)piVar7 + (-4 - (int)param_1)" (cast_expression "(int)piVar7" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(-4 - (int)param_1)" ( (binary_expression "-4 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) + identifier) )))) = identifier) ;) (expression_statement "piVar7 = piVar8;" (assignment_expression "piVar7 = piVar8" identifier = identifier) ;) }) while (parenthesized_expression "(piVar8 != param_1 + iVar1)" ( (binary_expression "piVar8 != param_1 + iVar1" identifier != (binary_expression "param_1 + iVar1" identifier + identifier)) )) ;) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);" (assignment_expression "puVar6 = (undefined4 *)(iVar5 + iVar1 * 4)" identifier = (cast_expression "(undefined4 *)(iVar5 + iVar1 * 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar1 * 4)" ( (binary_expression "iVar5 + iVar1 * 4" identifier + (binary_expression "iVar1 * 4" identifier * number_literal)) )))) ;) }))) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) }))) })) (return_statement "return piVar2;" return identifier ;) })) (expression_statement "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1)" identifier = (cast_expression "(int *)(*(code *)PTR_strlist_create_00145778)(1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strlist_create_00145778)(1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" ( (pointer_expression "*(code *)PTR_strlist_create_00145778" * (cast_expression "(code *)PTR_strlist_create_00145778" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1)" ( number_literal ))))) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * IDENT) )))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (return_statement return IDENT ;) })))
(function_definition "int * completions_to_stringlist(int *param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    \n                    \n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* completions_to_stringlist(int *param_1)" (* "*") (function_declarator "completions_to_stringlist(int *param_1)" (identifier "completions_to_stringlist") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined4 *puVar6;\n  int *piVar7;\n  int *piVar8;\n  \n  if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }\n                    \n                    \n  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);\n  return piVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 *puVar6;" (type_identifier "undefined4") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (if_statement "if (param_1 != (int *)0x0) {\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }" (if "if") (parenthesized_expression "(param_1 != (int *)0x0)" (( "(") (binary_expression "param_1 != (int *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();\n    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);\n    if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }\n    return piVar2;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strvec_len_00144cc8)();" (assignment_expression "iVar1 = (*(code *)PTR_strvec_len_00144cc8)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strvec_len_00144cc8)()" (parenthesized_expression "(*(code *)PTR_strvec_len_00144cc8)" (( "(") (pointer_expression "*(code *)PTR_strvec_len_00144cc8" (* "*") (cast_expression "(code *)PTR_strvec_len_00144cc8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strvec_len_00144cc8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strlist_create_00145778)(iVar1 + 1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" (( "(") (pointer_expression "*(code *)PTR_strlist_create_00145778" (* "*") (cast_expression "(code *)PTR_strlist_create_00145778" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlist_create_00145778"))) () ")")) (argument_list "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (*param_1 != 0) {\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }\n    }" ({ "{") (if_statement "if (param_1[1] == 0) {\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }\n      else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" (if "if") (parenthesized_expression "(param_1[1] == 0)" (( "(") (binary_expression "param_1[1] == 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = (*(code *)PTR_strlen_00146390)();\n        uVar4 = xmalloc(iVar1 + 1);\n        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);\n        puVar6 = (undefined4 *)*piVar2;\n        *puVar6 = uVar4;\n        piVar2[2] = 1;\n        puVar6[1] = 0;\n      }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)()" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)()" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = xmalloc(iVar1 + 1);" (assignment_expression "uVar4 = xmalloc(iVar1 + 1)" (identifier "uVar4") (= "=") (call_expression "xmalloc(iVar1 + 1)" (identifier "xmalloc") (argument_list "(iVar1 + 1)" (( "(") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);" (assignment_expression "uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar4,*param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar4,*param_1)" (( "(") (identifier "uVar4") (, ",") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "puVar6 = (undefined4 *)*piVar2;" (assignment_expression "puVar6 = (undefined4 *)*piVar2" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)*piVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (expression_statement "*puVar6 = uVar4;" (assignment_expression "*puVar6 = uVar4" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "piVar2[2] = 1;" (assignment_expression "piVar2[2] = 1" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar6[1] = 0;" (assignment_expression "puVar6[1] = 0" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" (else "else") (compound_statement "{\n        if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }\n        piVar2[2] = iVar1;\n        *puVar6 = 0;\n      }" ({ "{") (if_statement "if (iVar1 < 2) {\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }\n        else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" (if "if") (parenthesized_expression "(iVar1 < 2)" (( "(") (binary_expression "iVar1 < 2" (identifier "iVar1") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n          puVar6 = (undefined4 *)*piVar2;\n          iVar1 = 0;\n        }" ({ "{") (expression_statement "puVar6 = (undefined4 *)*piVar2;" (assignment_expression "puVar6 = (undefined4 *)*piVar2" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)*piVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" (else "else") (compound_statement "{\n          piVar7 = param_1 + 1;\n          do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);\n          iVar1 = iVar1 + -1;\n          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);\n        }" ({ "{") (expression_statement "piVar7 = param_1 + 1;" (assignment_expression "piVar7 = param_1 + 1" (identifier "piVar7") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          } while (piVar8 != param_1 + iVar1);" (do "do") (compound_statement "{\n            iVar3 = *piVar7;\n            if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }\n            iVar5 = *piVar2;\n            piVar8 = piVar7 + 1;\n            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;\n            piVar7 = piVar8;\n          }" ({ "{") (expression_statement "iVar3 = *piVar7;" (assignment_expression "iVar3 = *piVar7" (identifier "iVar3") (= "=") (pointer_expression "*piVar7" (* "*") (identifier "piVar7"))) (; ";")) (if_statement "if (iVar3 != 0) {\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);\n              uVar4 = xmalloc(iVar3 + 1);\n              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);\n            }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00146390)(iVar3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar4 = xmalloc(iVar3 + 1);" (assignment_expression "uVar4 = xmalloc(iVar3 + 1)" (identifier "uVar4") (= "=") (call_expression "xmalloc(iVar3 + 1)" (identifier "xmalloc") (argument_list "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);" (assignment_expression "iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar4,*piVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(uVar4,*piVar7)" (( "(") (identifier "uVar4") (, ",") (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar5 = *piVar2;" (assignment_expression "iVar5 = *piVar2" (identifier "iVar5") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "piVar8 = piVar7 + 1;" (assignment_expression "piVar8 = piVar7 + 1" (identifier "piVar8") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;" (assignment_expression "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3" (pointer_expression "*(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5)" (* "*") (cast_expression "(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar7 + (-4 - (int)param_1) + iVar5)" (( "(") (binary_expression "(int)piVar7 + (-4 - (int)param_1) + iVar5" (binary_expression "(int)piVar7 + (-4 - (int)param_1)" (cast_expression "(int)piVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar7")) (+ "+") (parenthesized_expression "(-4 - (int)param_1)" (( "(") (binary_expression "-4 - (int)param_1" (number_literal "-4") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "piVar7 = piVar8;" (assignment_expression "piVar7 = piVar8" (identifier "piVar7") (= "=") (identifier "piVar8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar8 != param_1 + iVar1)" (( "(") (binary_expression "piVar8 != param_1 + iVar1" (identifier "piVar8") (!= "!=") (binary_expression "param_1 + iVar1" (identifier "param_1") (+ "+") (identifier "iVar1"))) () ")")) (; ";")) (expression_statement "iVar1 = iVar1 + -1;" (assignment_expression "iVar1 = iVar1 + -1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);" (assignment_expression "puVar6 = (undefined4 *)(iVar5 + iVar1 * 4)" (identifier "puVar6") (= "=") (cast_expression "(undefined4 *)(iVar5 + iVar1 * 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar1 * 4)" (( "(") (binary_expression "iVar5 + iVar1 * 4" (identifier "iVar5") (+ "+") (binary_expression "iVar1 * 4" (identifier "iVar1") (* "*") (number_literal "4"))) () ")")))) (; ";")) (} "}")))) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}"))) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_strlist_create_00145778)(1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strlist_create_00145778)(1)" (parenthesized_expression "(*(code *)PTR_strlist_create_00145778)" (( "(") (pointer_expression "*(code *)PTR_strlist_create_00145778" (* "*") (cast_expression "(code *)PTR_strlist_create_00145778" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlist_create_00145778"))) () ")")) (argument_list "(1)" (( "(") (number_literal "1") () ")"))))) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

type_1 * function_1(char **var_1)

{
  int var_2;
  type_1 *pSVar2;
  char **var_6;
  char **var_4;
  char **var_5;
  
  if (var_1 == (char **)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pSVar2 = (type_1 *)(*(type_2 *)PTR_strlist_create_00145778)(1);
    return pSVar2;
  }
  var_2 = (*(type_2 *)PTR_strvec_len_00144cc8)();
  pSVar2 = (type_1 *)(*(type_2 *)PTR_strlist_create_00145778)(var_2 + 1);
  if (*var_1 != (char *)0x0) {
    if (var_1[1] == (char *)0x0) {
      var_2 = (*(type_2 *)PTR_strlen_00146390)();
                    /* WARNING: Subroutine does not return */
      var_3(var_2 + 1);
    }
    if (var_2 < 2) {
      var_6 = pSVar2->list;
      var_2 = 0;
    }
    else {
      var_4 = var_1 + 1;
      do {
        if (*var_4 != (char *)0x0) {
          var_2 = (*(type_2 *)PTR_strlen_00146390)(*var_4);
                    /* WARNING: Subroutine does not return */
          var_3(var_2 + 1);
        }
        var_6 = pSVar2->list;
        var_5 = var_4 + 1;
        *(type_3 *)((int)var_4 + (-4 - (int)var_1) + (int)var_6) = 0;
        var_4 = var_5;
      } while (var_5 != var_1 + var_2);
      var_2 = var_2 + -1;
      var_6 = var_6 + var_2;
    }
    pSVar2->list_len = var_2;
    *var_6 = (char *)0x0;
  }
  return pSVar2;
}


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

int * MASKED(int *param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined4 uVar4;
  int iVar5;
  undefined4 *puVar6;
  int *piVar7;
  int *piVar8;
  
  if (param_1 != (int *)0x0) {
    iVar1 = (*(code *)PTR_strvec_len_00144cc8)();
    piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(iVar1 + 1);
    if (*param_1 != 0) {
      if (param_1[1] == 0) {
        iVar1 = (*(code *)PTR_strlen_00146390)();
        uVar4 = xmalloc(iVar1 + 1);
        uVar4 = (*(code *)PTR_strcpy_00146418)(uVar4,*param_1);
        puVar6 = (undefined4 *)*piVar2;
        *puVar6 = uVar4;
        piVar2[2] = 1;
        puVar6[1] = 0;
      }
      else {
        if (iVar1 < 2) {
          puVar6 = (undefined4 *)*piVar2;
          iVar1 = 0;
        }
        else {
          piVar7 = param_1 + 1;
          do {
            iVar3 = *piVar7;
            if (iVar3 != 0) {
              iVar3 = (*(code *)PTR_strlen_00146390)(iVar3);
              uVar4 = xmalloc(iVar3 + 1);
              iVar3 = (*(code *)PTR_strcpy_00146418)(uVar4,*piVar7);
            }
            iVar5 = *piVar2;
            piVar8 = piVar7 + 1;
            *(int *)((int)piVar7 + (-4 - (int)param_1) + iVar5) = iVar3;
            piVar7 = piVar8;
          } while (piVar8 != param_1 + iVar1);
          iVar1 = iVar1 + -1;
          puVar6 = (undefined4 *)(iVar5 + iVar1 * 4);
        }
        piVar2[2] = iVar1;
        *puVar6 = 0;
      }
    }
    return piVar2;
  }
                    /* WARNING: Could not recover jumptable at 0x000aa9e8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  piVar2 = (int *)(*(code *)PTR_strlist_create_00145778)(1);
  return piVar2;
}

