
_Bool cmd_directory_vector(char *com,char *val,void *place)

{
  char **ppcVar1;
  uint uVar2;
  char *pcVar3;
  char **ppcVar4;
  
  if (*val == '\0') {
                    /* WARNING: Load size is inaccurate */
    free_vec(*place);
    *(undefined4 *)place = 0;
    return true;
  }
  ppcVar1 = sepstring(val);
  if (ppcVar1 != (char **)0x0) {
    pcVar3 = *ppcVar1;
    ppcVar4 = ppcVar1;
    while (pcVar3 != (char *)0x0) {
      ppcVar4 = ppcVar4 + 1;
      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);
      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {
        pcVar3[uVar2 - 1] = '\0';
      }
      if (ppcVar4 == (char **)0x0) break;
      pcVar3 = *ppcVar4;
    }
  }
                    /* WARNING: Load size is inaccurate */
  ppcVar1 = merge_vecs(*place,ppcVar1);
  *(char ***)place = ppcVar1;
  return true;
}



undefined4 FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)

{
  int *piVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  char *pcVar5;
  int *piVar6;
  
  if (*param_2 == '\0') {
    free_vec(*param_3);
    *param_3 = 0;
    return 1;
  }
  piVar1 = (int *)sepstring(param_2);
  if (piVar1 != (int *)0x0) {
    iVar4 = *piVar1;
    piVar6 = piVar1;
    while (iVar4 != 0) {
      piVar6 = piVar6 + 1;
      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);
      pcVar5 = (char *)(iVar4 + (uVar2 - 1));
      if ((1 < uVar2) && (*pcVar5 == '/')) {
        *pcVar5 = '\0';
      }
      if (piVar6 == (int *)0x0) break;
      iVar4 = *piVar6;
    }
  }
  uVar3 = merge_vecs(*param_3,piVar1);
  *param_3 = uVar3;
  return 1;
}


lui gp,0x7
addiu gp,gp,0x61f8
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x20(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
lb v0,0x0(a1)
beq v0,zero,0x0004131c
_or s2,a2,zero
lw t9,-0x7b68(gp)
bal 0x0005589c
_or a0,a1,zero
lw gp,0x10(sp)
beq v0,zero,0x000412e4
_or s4,v0,zero
lw s0,0x0(v0)
beq s0,zero,0x000412e4
_li s3,0x2f
b 0x000412a8
_or s1,v0,zero
lw s0,0x0(s1)
beq s0,zero,0x000412e8
_lw t9,-0x7b64(gp)
lw t9,-0x77c8(gp)
or a0,s0,zero
jalr t9
_addiu s1,s1,0x4
addiu v1,v0,-0x1
lw gp,0x10(sp)
sltiu v0,v0,0x2
bne v0,zero,0x000412dc
_addu s0,s0,v1
lb v0,0x0(s0)
bne v0,s3,0x000412dc
_nop
sb zero,0x0(s0)
bne s1,zero,0x0004129c
_nop
lw t9,-0x7b64(gp)
or a1,s4,zero
bal 0x00057088
_lw a0,0x0(s2)
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sw v0,0x0(s2)
li v0,0x1
lw s2,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7b74(gp)
bal 0x0005700c
_lw a0,0x0(a2)
li v0,0x1
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sw zero,0x0(s2)
lw s2,0x20(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined4 FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}" type_identifier (function_declarator "FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (if_statement "if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }" { (expression_statement "free_vec(*param_3);" (call_expression "free_vec(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar1 = (int *)sepstring(param_2);" (assignment_expression "piVar1 = (int *)sepstring(param_2)" identifier = (cast_expression "(int *)sepstring(param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sepstring(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piVar6 = piVar1;" (assignment_expression "piVar6 = piVar1" identifier = identifier) ;) (while_statement "while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }" while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }" { (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4)" identifier = (call_expression "(*(code *)PTR_strlen_000afc68)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" ( (pointer_expression "*(code *)PTR_strlen_000afc68" * (cast_expression "(code *)PTR_strlen_000afc68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)(iVar4 + (uVar2 - 1));" (assignment_expression "pcVar5 = (char *)(iVar4 + (uVar2 - 1))" identifier = (cast_expression "(char *)(iVar4 + (uVar2 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (uVar2 - 1))" ( (binary_expression "iVar4 + (uVar2 - 1)" identifier + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))) )))) ;) (if_statement "if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }" if (parenthesized_expression "((1 < uVar2) && (*pcVar5 == '/'))" ( (binary_expression "(1 < uVar2) && (*pcVar5 == '/')" (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) && (parenthesized_expression "(*pcVar5 == '/')" ( (binary_expression "*pcVar5 == '/'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n        *pcVar5 = '\0';\n      }" { (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (piVar6 == (int *)0x0) break;" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar6;" (assignment_expression "iVar4 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) })) })) (expression_statement "uVar3 = merge_vecs(*param_3,piVar1);" (assignment_expression "uVar3 = merge_vecs(*param_3,piVar1)" identifier = (call_expression "merge_vecs(*param_3,piVar1)" identifier (argument_list "(*param_3,piVar1)" ( (pointer_expression "*param_3" * identifier) , identifier )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "_Bool cmd_directory_vector(char *com,char *val,void *place)\n\n{\n  char **ppcVar1;\n  uint uVar2;\n  char *pcVar3;\n  char **ppcVar4;\n  \n  if (*val == '\0') {\n                    /* WARNING: Load size is inaccurate */\n    free_vec(*place);\n    *(undefined4 *)place = 0;\n    return true;\n  }\n  ppcVar1 = sepstring(val);\n  if (ppcVar1 != (char **)0x0) {\n    pcVar3 = *ppcVar1;\n    ppcVar4 = ppcVar1;\n    while (pcVar3 != (char *)0x0) {\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }\n  }\n                    /* WARNING: Load size is inaccurate */\n  ppcVar1 = merge_vecs(*place,ppcVar1);\n  *(char ***)place = ppcVar1;\n  return true;\n}\n\n" (function_definition "_Bool cmd_directory_vector(char *com,char *val,void *place)\n\n{\n  char **ppcVar1;\n  uint uVar2;\n  char *pcVar3;\n  char **ppcVar4;\n  \n  if (*val == '\0') {\n                    /* WARNING: Load size is inaccurate */\n    free_vec(*place);\n    *(undefined4 *)place = 0;\n    return true;\n  }\n  ppcVar1 = sepstring(val);\n  if (ppcVar1 != (char **)0x0) {\n    pcVar3 = *ppcVar1;\n    ppcVar4 = ppcVar1;\n    while (pcVar3 != (char *)0x0) {\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }\n  }\n                    /* WARNING: Load size is inaccurate */\n  ppcVar1 = merge_vecs(*place,ppcVar1);\n  *(char ***)place = ppcVar1;\n  return true;\n}" type_identifier (function_declarator "cmd_directory_vector(char *com,char *val,void *place)" identifier (parameter_list "(char *com,char *val,void *place)" ( (parameter_declaration "char *com" primitive_type (pointer_declarator "*com" * identifier)) , (parameter_declaration "char *val" primitive_type (pointer_declarator "*val" * identifier)) , (parameter_declaration "void *place" primitive_type (pointer_declarator "*place" * identifier)) ))) (compound_statement "{\n  char **ppcVar1;\n  uint uVar2;\n  char *pcVar3;\n  char **ppcVar4;\n  \n  if (*val == '\0') {\n                    /* WARNING: Load size is inaccurate */\n    free_vec(*place);\n    *(undefined4 *)place = 0;\n    return true;\n  }\n  ppcVar1 = sepstring(val);\n  if (ppcVar1 != (char **)0x0) {\n    pcVar3 = *ppcVar1;\n    ppcVar4 = ppcVar1;\n    while (pcVar3 != (char *)0x0) {\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }\n  }\n                    /* WARNING: Load size is inaccurate */\n  ppcVar1 = merge_vecs(*place,ppcVar1);\n  *(char ***)place = ppcVar1;\n  return true;\n}" { (declaration "char **ppcVar1;" primitive_type (pointer_declarator "**ppcVar1" * (pointer_declarator "*ppcVar1" * identifier)) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (if_statement "if (*val == '\0') {\n                    /* WARNING: Load size is inaccurate */\n    free_vec(*place);\n    *(undefined4 *)place = 0;\n    return true;\n  }" if (parenthesized_expression "(*val == '\0')" ( (binary_expression "*val == '\0'" (pointer_expression "*val" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    free_vec(*place);\n    *(undefined4 *)place = 0;\n    return true;\n  }" { comment (expression_statement "free_vec(*place);" (call_expression "free_vec(*place)" identifier (argument_list "(*place)" ( (pointer_expression "*place" * identifier) ))) ;) (expression_statement "*(undefined4 *)place = 0;" (assignment_expression "*(undefined4 *)place = 0" (pointer_expression "*(undefined4 *)place" * (cast_expression "(undefined4 *)place" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (return_statement "return true;" return true ;) })) (expression_statement "ppcVar1 = sepstring(val);" (assignment_expression "ppcVar1 = sepstring(val)" identifier = (call_expression "sepstring(val)" identifier (argument_list "(val)" ( identifier )))) ;) (if_statement "if (ppcVar1 != (char **)0x0) {\n    pcVar3 = *ppcVar1;\n    ppcVar4 = ppcVar1;\n    while (pcVar3 != (char *)0x0) {\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }\n  }" if (parenthesized_expression "(ppcVar1 != (char **)0x0)" ( (binary_expression "ppcVar1 != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    pcVar3 = *ppcVar1;\n    ppcVar4 = ppcVar1;\n    while (pcVar3 != (char *)0x0) {\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }\n  }" { (expression_statement "pcVar3 = *ppcVar1;" (assignment_expression "pcVar3 = *ppcVar1" identifier = (pointer_expression "*ppcVar1" * identifier)) ;) (expression_statement "ppcVar4 = ppcVar1;" (assignment_expression "ppcVar4 = ppcVar1" identifier = identifier) ;) (while_statement "while (pcVar3 != (char *)0x0) {\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }" while (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      ppcVar4 = ppcVar4 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);\n      if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }\n      if (ppcVar4 == (char **)0x0) break;\n      pcVar3 = *ppcVar4;\n    }" { (expression_statement "ppcVar4 = ppcVar4 + 1;" (assignment_expression "ppcVar4 = ppcVar4 + 1" identifier = (binary_expression "ppcVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000afc68)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000afc68)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" ( (pointer_expression "*(code *)PTR_strlen_000afc68" * (cast_expression "(code *)PTR_strlen_000afc68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (if_statement "if ((1 < uVar2) && (pcVar3[uVar2 - 1] == '/')) {\n        pcVar3[uVar2 - 1] = '\0';\n      }" if (parenthesized_expression "((1 < uVar2) && (pcVar3[uVar2 - 1] == '/'))" ( (binary_expression "(1 < uVar2) && (pcVar3[uVar2 - 1] == '/')" (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) && (parenthesized_expression "(pcVar3[uVar2 - 1] == '/')" ( (binary_expression "pcVar3[uVar2 - 1] == '/'" (subscript_expression "pcVar3[uVar2 - 1]" identifier [ (binary_expression "uVar2 - 1" identifier - number_literal) ]) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n        pcVar3[uVar2 - 1] = '\0';\n      }" { (expression_statement "pcVar3[uVar2 - 1] = '\0';" (assignment_expression "pcVar3[uVar2 - 1] = '\0'" (subscript_expression "pcVar3[uVar2 - 1]" identifier [ (binary_expression "uVar2 - 1" identifier - number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (ppcVar4 == (char **)0x0) break;" if (parenthesized_expression "(ppcVar4 == (char **)0x0)" ( (binary_expression "ppcVar4 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = *ppcVar4;" (assignment_expression "pcVar3 = *ppcVar4" identifier = (pointer_expression "*ppcVar4" * identifier)) ;) })) })) comment (expression_statement "ppcVar1 = merge_vecs(*place,ppcVar1);" (assignment_expression "ppcVar1 = merge_vecs(*place,ppcVar1)" identifier = (call_expression "merge_vecs(*place,ppcVar1)" identifier (argument_list "(*place,ppcVar1)" ( (pointer_expression "*place" * identifier) , identifier )))) ;) (expression_statement "*(char ***)place = ppcVar1;" (assignment_expression "*(char ***)place = ppcVar1" (pointer_expression "*(char ***)place" * (cast_expression "(char ***)place" ( (type_descriptor "char ***" primitive_type (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = identifier) ;) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}" type_identifier (function_declarator "FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (if_statement "if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }" if (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }" { (expression_statement "free_vec(*param_3);" (call_expression "free_vec(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar1 = (int *)sepstring(param_2);" (assignment_expression "piVar1 = (int *)sepstring(param_2)" identifier = (cast_expression "(int *)sepstring(param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sepstring(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }" { (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "piVar6 = piVar1;" (assignment_expression "piVar6 = piVar1" identifier = identifier) ;) (while_statement "while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }" while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }" { (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" identifier = (binary_expression "piVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4)" identifier = (call_expression "(*(code *)PTR_strlen_000afc68)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" ( (pointer_expression "*(code *)PTR_strlen_000afc68" * (cast_expression "(code *)PTR_strlen_000afc68" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)(iVar4 + (uVar2 - 1));" (assignment_expression "pcVar5 = (char *)(iVar4 + (uVar2 - 1))" identifier = (cast_expression "(char *)(iVar4 + (uVar2 - 1))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + (uVar2 - 1))" ( (binary_expression "iVar4 + (uVar2 - 1)" identifier + (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) ))) )))) ;) (if_statement "if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }" if (parenthesized_expression "((1 < uVar2) && (*pcVar5 == '/'))" ( (binary_expression "(1 < uVar2) && (*pcVar5 == '/')" (parenthesized_expression "(1 < uVar2)" ( (binary_expression "1 < uVar2" number_literal < identifier) )) && (parenthesized_expression "(*pcVar5 == '/')" ( (binary_expression "*pcVar5 == '/'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'/'" ' character ')) ))) )) (compound_statement "{\n        *pcVar5 = '\0';\n      }" { (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (piVar6 == (int *)0x0) break;" if (parenthesized_expression "(piVar6 == (int *)0x0)" ( (binary_expression "piVar6 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = *piVar6;" (assignment_expression "iVar4 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) })) })) (expression_statement "uVar3 = merge_vecs(*param_3,piVar1);" (assignment_expression "uVar3 = merge_vecs(*param_3,piVar1)" identifier = (call_expression "merge_vecs(*param_3,piVar1)" identifier (argument_list "(*param_3,piVar1)" ( (pointer_expression "*param_3" * identifier) , identifier )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( 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 = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - LIT) ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00041238(undefined4 param_1,char *param_2,undefined4 *param_3)" (identifier "FUN_00041238") (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  int iVar4;\n  char *pcVar5;\n  int *piVar6;\n  \n  if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }\n  piVar1 = (int *)sepstring(param_2);\n  if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }\n  uVar3 = merge_vecs(*param_3,piVar1);\n  *param_3 = uVar3;\n  return 1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (if_statement "if (*param_2 == '\0') {\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }" (if "if") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    free_vec(*param_3);\n    *param_3 = 0;\n    return 1;\n  }" ({ "{") (expression_statement "free_vec(*param_3);" (call_expression "free_vec(*param_3)" (identifier "free_vec") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)sepstring(param_2);" (assignment_expression "piVar1 = (int *)sepstring(param_2)" (identifier "piVar1") (= "=") (cast_expression "(int *)sepstring(param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "sepstring(param_2)" (identifier "sepstring") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (piVar1 != (int *)0x0) {\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar4 = *piVar1;\n    piVar6 = piVar1;\n    while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }\n  }" ({ "{") (expression_statement "iVar4 = *piVar1;" (assignment_expression "iVar4 = *piVar1" (identifier "iVar4") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "piVar6 = piVar1;" (assignment_expression "piVar6 = piVar1" (identifier "piVar6") (= "=") (identifier "piVar1")) (; ";")) (while_statement "while (iVar4 != 0) {\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }" (while "while") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar6 = piVar6 + 1;\n      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);\n      pcVar5 = (char *)(iVar4 + (uVar2 - 1));\n      if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }\n      if (piVar6 == (int *)0x0) break;\n      iVar4 = *piVar6;\n    }" ({ "{") (expression_statement "piVar6 = piVar6 + 1;" (assignment_expression "piVar6 = piVar6 + 1" (identifier "piVar6") (= "=") (binary_expression "piVar6 + 1" (identifier "piVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);" (assignment_expression "uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_strlen_000afc68)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_000afc68)" (( "(") (pointer_expression "*(code *)PTR_strlen_000afc68" (* "*") (cast_expression "(code *)PTR_strlen_000afc68" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000afc68"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "pcVar5 = (char *)(iVar4 + (uVar2 - 1));" (assignment_expression "pcVar5 = (char *)(iVar4 + (uVar2 - 1))" (identifier "pcVar5") (= "=") (cast_expression "(char *)(iVar4 + (uVar2 - 1))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + (uVar2 - 1))" (( "(") (binary_expression "iVar4 + (uVar2 - 1)" (identifier "iVar4") (+ "+") (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")"))) () ")")))) (; ";")) (if_statement "if ((1 < uVar2) && (*pcVar5 == '/')) {\n        *pcVar5 = '\0';\n      }" (if "if") (parenthesized_expression "((1 < uVar2) && (*pcVar5 == '/'))" (( "(") (binary_expression "(1 < uVar2) && (*pcVar5 == '/')" (parenthesized_expression "(1 < uVar2)" (( "(") (binary_expression "1 < uVar2" (number_literal "1") (< "<") (identifier "uVar2")) () ")")) (&& "&&") (parenthesized_expression "(*pcVar5 == '/')" (( "(") (binary_expression "*pcVar5 == '/'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        *pcVar5 = '\0';\n      }" ({ "{") (expression_statement "*pcVar5 = '\0';" (assignment_expression "*pcVar5 = '\0'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (if_statement "if (piVar6 == (int *)0x0) break;" (if "if") (parenthesized_expression "(piVar6 == (int *)0x0)" (( "(") (binary_expression "piVar6 == (int *)0x0" (identifier "piVar6") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = *piVar6;" (assignment_expression "iVar4 = *piVar6" (identifier "iVar4") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar3 = merge_vecs(*param_3,piVar1);" (assignment_expression "uVar3 = merge_vecs(*param_3,piVar1)" (identifier "uVar3") (= "=") (call_expression "merge_vecs(*param_3,piVar1)" (identifier "merge_vecs") (argument_list "(*param_3,piVar1)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (identifier "piVar1") () ")")))) (; ";")) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

type_1 function_1(char *com,char *val,void *place)

{
  char **var_3;
  type_2 var_6;
  char *var_4;
  char **var_5;
  
  if (*val == '\0') {
                    /* WARNING: Load size is inaccurate */
    var_1(*place);
    *(type_3 *)place = 0;
    return true;
  }
  var_3 = var_2(val);
  if (var_3 != (char **)0x0) {
    var_4 = *var_3;
    var_5 = var_3;
    while (var_4 != (char *)0x0) {
      var_5 = var_5 + 1;
      var_6 = (*(type_4 *)PTR_strlen_000afc68)(var_4);
      if ((1 < var_6) && (var_4[var_6 - 1] == '/')) {
        var_4[var_6 - 1] = '\0';
      }
      if (var_5 == (char **)0x0) break;
      var_4 = *var_5;
    }
  }
                    /* WARNING: Load size is inaccurate */
  var_3 = var_7(*place,var_3);
  *(char ***)place = var_3;
  return true;
}


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

undefined4 MASKED(undefined4 param_1,char *param_2,undefined4 *param_3)

{
  int *piVar1;
  uint uVar2;
  undefined4 uVar3;
  int iVar4;
  char *pcVar5;
  int *piVar6;
  
  if (*param_2 == '\0') {
    free_vec(*param_3);
    *param_3 = 0;
    return 1;
  }
  piVar1 = (int *)sepstring(param_2);
  if (piVar1 != (int *)0x0) {
    iVar4 = *piVar1;
    piVar6 = piVar1;
    while (iVar4 != 0) {
      piVar6 = piVar6 + 1;
      uVar2 = (*(code *)PTR_strlen_000afc68)(iVar4);
      pcVar5 = (char *)(iVar4 + (uVar2 - 1));
      if ((1 < uVar2) && (*pcVar5 == '/')) {
        *pcVar5 = '\0';
      }
      if (piVar6 == (int *)0x0) break;
      iVar4 = *piVar6;
    }
  }
  uVar3 = merge_vecs(*param_3,piVar1);
  *param_3 = uVar3;
  return 1;
}

