
char ** dupargv(char **argv)

{
  long lVar1;
  char **ppcVar2;
  undefined8 uVar3;
  char **ppcVar4;
  long lVar5;
  
  if (argv == (char **)0x0) {
    ppcVar2 = (char **)0x0;
  }
  else {
    if (*argv == (char *)0x0) {
      lVar5 = 8;
    }
    else {
      lVar5 = 1;
      do {
        lVar1 = lVar5;
        lVar5 = lVar1 + 1;
      } while (argv[lVar1] != (char *)0x0);
      lVar5 = (long)((int)lVar1 + 1) << 3;
    }
    ppcVar2 = (char **)xmalloc(lVar5);
    ppcVar4 = ppcVar2;
    if (*argv != (char *)0x0) {
      lVar5 = 0;
      do {
        uVar3 = xstrdup();
        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;
        lVar5 = lVar5 + 8;
      } while (*(long *)((long)argv + lVar5) != 0);
      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);
    }
    *ppcVar4 = (char *)0x0;
  }
  return ppcVar2;
}



undefined8 * FUN_00107010(long *param_1)

{
  long lVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  long lVar5;
  
  if (param_1 == (long *)0x0) {
    puVar2 = (undefined8 *)0x0;
  }
  else {
    if (*param_1 == 0) {
      lVar5 = 8;
    }
    else {
      lVar5 = 1;
      do {
        lVar1 = lVar5;
        lVar5 = lVar1 + 1;
      } while (param_1[lVar1] != 0);
      lVar5 = (long)((int)lVar1 + 1) << 3;
    }
    puVar2 = (undefined8 *)xmalloc(lVar5);
    puVar4 = puVar2;
    if (*param_1 != 0) {
      lVar5 = 0;
      do {
        uVar3 = xstrdup();
        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;
        lVar5 = lVar5 + 8;
      } while (*(long *)((long)param_1 + lVar5) != 0);
      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);
    }
    *puVar4 = 0;
  }
  return puVar2;
}


PUSH R12
PUSH RBP
PUSH RBX
TEST RDI,RDI
JZ 0x001070a5
CMP qword ptr [RDI],0x0
MOV RBP,RDI
JZ 0x00107090
MOV EAX,0x1
NOP dword ptr [RAX + RAX*0x1]
MOV ECX,EAX
ADD RAX,0x1
CMP qword ptr [RBP + RAX*0x8 + -0x8],0x0
JNZ 0x00107030
LEA EDI,[RCX + 0x1]
MOVSXD RDI,EDI
SHL RDI,0x3
CALL 0x00103250
MOV RDI,qword ptr [RBP]
MOV R12,RAX
TEST RDI,RDI
JZ 0x001070a0
XOR EBX,EBX
NOP dword ptr [RAX + RAX*0x1]
CALL 0x00103280
MOV qword ptr [R12 + RBX*0x1],RAX
ADD RBX,0x8
MOV RDI,qword ptr [RBP + RBX*0x1]
TEST RDI,RDI
JNZ 0x00107060
ADD RBX,R12
MOV qword ptr [RBX],0x0
MOV RAX,R12
POP RBX
POP RBP
POP R12
RET
MOV EDI,0x8
JMP 0x00107048
MOV RBX,RAX
JMP 0x0010707a
XOR R12D,R12D
JMP 0x00107081
(translation_unit "undefined8 * FUN_00107010(long *param_1)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined8 * FUN_00107010(long *param_1)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00107010(long *param_1)" * (function_declarator "FUN_00107010(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" if (parenthesized_expression "(param_1 == (long *)0x0)" ( (binary_expression "param_1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined8 *)0x0;\n  }" { (expression_statement "puVar2 = (undefined8 *)0x0;" (assignment_expression "puVar2 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" else (compound_statement "{\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" { (if_statement "if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      lVar5 = 8;\n    }" { (expression_statement "lVar5 = 8;" (assignment_expression "lVar5 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" else (compound_statement "{\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" { (expression_statement "lVar5 = 1;" (assignment_expression "lVar5 = 1" identifier = number_literal) ;) (do_statement "do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);" do (compound_statement "{\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      }" { (expression_statement "lVar1 = lVar5;" (assignment_expression "lVar1 = lVar5" identifier = identifier) ;) (expression_statement "lVar5 = lVar1 + 1;" (assignment_expression "lVar5 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1[lVar1] != 0)" ( (binary_expression "param_1[lVar1] != 0" (subscript_expression "param_1[lVar1]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "lVar5 = (long)((int)lVar1 + 1) << 3;" (assignment_expression "lVar5 = (long)((int)lVar1 + 1) << 3" identifier = (binary_expression "(long)((int)lVar1 + 1) << 3" (cast_expression "(long)((int)lVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((int)lVar1 + 1)" ( (binary_expression "(int)lVar1 + 1" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) << number_literal)) ;) }))) (expression_statement "puVar2 = (undefined8 *)xmalloc(lVar5);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(lVar5)" identifier = (cast_expression "(undefined8 *)xmalloc(lVar5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (if_statement "if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);" do (compound_statement "{\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      }" { (expression_statement "uVar3 = xstrdup();" (assignment_expression "uVar3 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)((long)puVar2 + lVar5) = uVar3;" (assignment_expression "*(undefined8 *)((long)puVar2 + lVar5) = uVar3" (pointer_expression "*(undefined8 *)((long)puVar2 + lVar5)" * (cast_expression "(undefined8 *)((long)puVar2 + lVar5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar2 + lVar5)" ( (binary_expression "(long)puVar2 + lVar5" (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "lVar5 = lVar5 + 8;" (assignment_expression "lVar5 = lVar5 + 8" identifier = (binary_expression "lVar5 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long *)((long)param_1 + lVar5) != 0)" ( (binary_expression "*(long *)((long)param_1 + lVar5) != 0" (pointer_expression "*(long *)((long)param_1 + lVar5)" * (cast_expression "(long *)((long)param_1 + lVar5)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + lVar5)" ( (binary_expression "(long)param_1 + lVar5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) != number_literal) )) ;) (expression_statement "puVar4 = (undefined8 *)(lVar5 + (long)puVar2);" (assignment_expression "puVar4 = (undefined8 *)(lVar5 + (long)puVar2)" identifier = (cast_expression "(undefined8 *)(lVar5 + (long)puVar2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + (long)puVar2)" ( (binary_expression "lVar5 + (long)puVar2" identifier + (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) })) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }))) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "char ** dupargv(char **argv)\n\n{\n  long lVar1;\n  char **ppcVar2;\n  undefined8 uVar3;\n  char **ppcVar4;\n  long lVar5;\n  \n  if (argv == (char **)0x0) {\n    ppcVar2 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    ppcVar2 = (char **)xmalloc(lVar5);\n    ppcVar4 = ppcVar2;\n    if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }\n    *ppcVar4 = (char *)0x0;\n  }\n  return ppcVar2;\n}\n\n" (function_definition "char ** dupargv(char **argv)\n\n{\n  long lVar1;\n  char **ppcVar2;\n  undefined8 uVar3;\n  char **ppcVar4;\n  long lVar5;\n  \n  if (argv == (char **)0x0) {\n    ppcVar2 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    ppcVar2 = (char **)xmalloc(lVar5);\n    ppcVar4 = ppcVar2;\n    if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }\n    *ppcVar4 = (char *)0x0;\n  }\n  return ppcVar2;\n}" primitive_type (pointer_declarator "** dupargv(char **argv)" * (pointer_declarator "* dupargv(char **argv)" * (function_declarator "dupargv(char **argv)" identifier (parameter_list "(char **argv)" ( (parameter_declaration "char **argv" primitive_type (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))))) (compound_statement "{\n  long lVar1;\n  char **ppcVar2;\n  undefined8 uVar3;\n  char **ppcVar4;\n  long lVar5;\n  \n  if (argv == (char **)0x0) {\n    ppcVar2 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    ppcVar2 = (char **)xmalloc(lVar5);\n    ppcVar4 = ppcVar2;\n    if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }\n    *ppcVar4 = (char *)0x0;\n  }\n  return ppcVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char **ppcVar2;" primitive_type (pointer_declarator "**ppcVar2" * (pointer_declarator "*ppcVar2" * identifier)) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "char **ppcVar4;" primitive_type (pointer_declarator "**ppcVar4" * (pointer_declarator "*ppcVar4" * identifier)) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (argv == (char **)0x0) {\n    ppcVar2 = (char **)0x0;\n  }\n  else {\n    if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    ppcVar2 = (char **)xmalloc(lVar5);\n    ppcVar4 = ppcVar2;\n    if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }\n    *ppcVar4 = (char *)0x0;\n  }" if (parenthesized_expression "(argv == (char **)0x0)" ( (binary_expression "argv == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    ppcVar2 = (char **)0x0;\n  }" { (expression_statement "ppcVar2 = (char **)0x0;" (assignment_expression "ppcVar2 = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) }) (else_clause "else {\n    if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    ppcVar2 = (char **)xmalloc(lVar5);\n    ppcVar4 = ppcVar2;\n    if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }\n    *ppcVar4 = (char *)0x0;\n  }" else (compound_statement "{\n    if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    ppcVar2 = (char **)xmalloc(lVar5);\n    ppcVar4 = ppcVar2;\n    if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }\n    *ppcVar4 = (char *)0x0;\n  }" { (if_statement "if (*argv == (char *)0x0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" if (parenthesized_expression "(*argv == (char *)0x0)" ( (binary_expression "*argv == (char *)0x0" (pointer_expression "*argv" * identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      lVar5 = 8;\n    }" { (expression_statement "lVar5 = 8;" (assignment_expression "lVar5 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" else (compound_statement "{\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" { (expression_statement "lVar5 = 1;" (assignment_expression "lVar5 = 1" identifier = number_literal) ;) (do_statement "do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (argv[lVar1] != (char *)0x0);" do (compound_statement "{\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      }" { (expression_statement "lVar1 = lVar5;" (assignment_expression "lVar1 = lVar5" identifier = identifier) ;) (expression_statement "lVar5 = lVar1 + 1;" (assignment_expression "lVar5 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(argv[lVar1] != (char *)0x0)" ( (binary_expression "argv[lVar1] != (char *)0x0" (subscript_expression "argv[lVar1]" identifier [ identifier ]) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "lVar5 = (long)((int)lVar1 + 1) << 3;" (assignment_expression "lVar5 = (long)((int)lVar1 + 1) << 3" identifier = (binary_expression "(long)((int)lVar1 + 1) << 3" (cast_expression "(long)((int)lVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((int)lVar1 + 1)" ( (binary_expression "(int)lVar1 + 1" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) << number_literal)) ;) }))) (expression_statement "ppcVar2 = (char **)xmalloc(lVar5);" (assignment_expression "ppcVar2 = (char **)xmalloc(lVar5)" identifier = (cast_expression "(char **)xmalloc(lVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (call_expression "xmalloc(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))))) ;) (expression_statement "ppcVar4 = ppcVar2;" (assignment_expression "ppcVar4 = ppcVar2" identifier = identifier) ;) (if_statement "if (*argv != (char *)0x0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }" if (parenthesized_expression "(*argv != (char *)0x0)" ( (binary_expression "*argv != (char *)0x0" (pointer_expression "*argv" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);\n      ppcVar4 = (char **)(lVar5 + (long)ppcVar2);\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)argv + lVar5) != 0);" do (compound_statement "{\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      }" { (expression_statement "uVar3 = xstrdup();" (assignment_expression "uVar3 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)((long)ppcVar2 + lVar5) = uVar3;" (assignment_expression "*(undefined8 *)((long)ppcVar2 + lVar5) = uVar3" (pointer_expression "*(undefined8 *)((long)ppcVar2 + lVar5)" * (cast_expression "(undefined8 *)((long)ppcVar2 + lVar5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)ppcVar2 + lVar5)" ( (binary_expression "(long)ppcVar2 + lVar5" (cast_expression "(long)ppcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "lVar5 = lVar5 + 8;" (assignment_expression "lVar5 = lVar5 + 8" identifier = (binary_expression "lVar5 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long *)((long)argv + lVar5) != 0)" ( (binary_expression "*(long *)((long)argv + lVar5) != 0" (pointer_expression "*(long *)((long)argv + lVar5)" * (cast_expression "(long *)((long)argv + lVar5)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)argv + lVar5)" ( (binary_expression "(long)argv + lVar5" (cast_expression "(long)argv" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) != number_literal) )) ;) (expression_statement "ppcVar4 = (char **)(lVar5 + (long)ppcVar2);" (assignment_expression "ppcVar4 = (char **)(lVar5 + (long)ppcVar2)" identifier = (cast_expression "(char **)(lVar5 + (long)ppcVar2)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar5 + (long)ppcVar2)" ( (binary_expression "lVar5 + (long)ppcVar2" identifier + (cast_expression "(long)ppcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) })) (expression_statement "*ppcVar4 = (char *)0x0;" (assignment_expression "*ppcVar4 = (char *)0x0" (pointer_expression "*ppcVar4" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (return_statement "return ppcVar2;" return identifier ;) })))
(translation_unit "undefined8 * FUN_00107010(long *param_1)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined8 * FUN_00107010(long *param_1)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00107010(long *param_1)" * (function_declarator "FUN_00107010(long *param_1)" identifier (parameter_list "(long *param_1)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" if (parenthesized_expression "(param_1 == (long *)0x0)" ( (binary_expression "param_1 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar2 = (undefined8 *)0x0;\n  }" { (expression_statement "puVar2 = (undefined8 *)0x0;" (assignment_expression "puVar2 = (undefined8 *)0x0" identifier = (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" else (compound_statement "{\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" { (if_statement "if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n      lVar5 = 8;\n    }" { (expression_statement "lVar5 = 8;" (assignment_expression "lVar5 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" else (compound_statement "{\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" { (expression_statement "lVar5 = 1;" (assignment_expression "lVar5 = 1" identifier = number_literal) ;) (do_statement "do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);" do (compound_statement "{\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      }" { (expression_statement "lVar1 = lVar5;" (assignment_expression "lVar1 = lVar5" identifier = identifier) ;) (expression_statement "lVar5 = lVar1 + 1;" (assignment_expression "lVar5 = lVar1 + 1" identifier = (binary_expression "lVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1[lVar1] != 0)" ( (binary_expression "param_1[lVar1] != 0" (subscript_expression "param_1[lVar1]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "lVar5 = (long)((int)lVar1 + 1) << 3;" (assignment_expression "lVar5 = (long)((int)lVar1 + 1) << 3" identifier = (binary_expression "(long)((int)lVar1 + 1) << 3" (cast_expression "(long)((int)lVar1 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((int)lVar1 + 1)" ( (binary_expression "(int)lVar1 + 1" (cast_expression "(int)lVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) << number_literal)) ;) }))) (expression_statement "puVar2 = (undefined8 *)xmalloc(lVar5);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(lVar5)" identifier = (cast_expression "(undefined8 *)xmalloc(lVar5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(lVar5)" identifier (argument_list "(lVar5)" ( identifier ))))) ;) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" identifier = identifier) ;) (if_statement "if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);" do (compound_statement "{\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      }" { (expression_statement "uVar3 = xstrdup();" (assignment_expression "uVar3 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)((long)puVar2 + lVar5) = uVar3;" (assignment_expression "*(undefined8 *)((long)puVar2 + lVar5) = uVar3" (pointer_expression "*(undefined8 *)((long)puVar2 + lVar5)" * (cast_expression "(undefined8 *)((long)puVar2 + lVar5)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar2 + lVar5)" ( (binary_expression "(long)puVar2 + lVar5" (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) = identifier) ;) (expression_statement "lVar5 = lVar5 + 8;" (assignment_expression "lVar5 = lVar5 + 8" identifier = (binary_expression "lVar5 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long *)((long)param_1 + lVar5) != 0)" ( (binary_expression "*(long *)((long)param_1 + lVar5) != 0" (pointer_expression "*(long *)((long)param_1 + lVar5)" * (cast_expression "(long *)((long)param_1 + lVar5)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + lVar5)" ( (binary_expression "(long)param_1 + lVar5" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) != number_literal) )) ;) (expression_statement "puVar4 = (undefined8 *)(lVar5 + (long)puVar2);" (assignment_expression "puVar4 = (undefined8 *)(lVar5 + (long)puVar2)" identifier = (cast_expression "(undefined8 *)(lVar5 + (long)puVar2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + (long)puVar2)" ( (binary_expression "lVar5 + (long)puVar2" identifier + (cast_expression "(long)puVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) })) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) }))) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))) << LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + IDENT) )))) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined8 * FUN_00107010(long *param_1)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_00107010(long *param_1)" (* "*") (function_declarator "FUN_00107010(long *param_1)" (identifier "FUN_00107010") (parameter_list "(long *param_1)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  undefined8 uVar3;\n  undefined8 *puVar4;\n  long lVar5;\n  \n  if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }\n  return puVar2;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined8 *puVar4;" (type_identifier "undefined8") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (if_statement "if (param_1 == (long *)0x0) {\n    puVar2 = (undefined8 *)0x0;\n  }\n  else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (long *)0x0)" (( "(") (binary_expression "param_1 == (long *)0x0" (identifier "param_1") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar2 = (undefined8 *)0x0;\n  }" ({ "{") (expression_statement "puVar2 = (undefined8 *)0x0;" (assignment_expression "puVar2 = (undefined8 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" (else "else") (compound_statement "{\n    if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }\n    puVar2 = (undefined8 *)xmalloc(lVar5);\n    puVar4 = puVar2;\n    if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }\n    *puVar4 = 0;\n  }" ({ "{") (if_statement "if (*param_1 == 0) {\n      lVar5 = 8;\n    }\n    else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\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      lVar5 = 8;\n    }" ({ "{") (expression_statement "lVar5 = 8;" (assignment_expression "lVar5 = 8" (identifier "lVar5") (= "=") (number_literal "8")) (; ";")) (} "}")) (else_clause "else {\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" (else "else") (compound_statement "{\n      lVar5 = 1;\n      do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);\n      lVar5 = (long)((int)lVar1 + 1) << 3;\n    }" ({ "{") (expression_statement "lVar5 = 1;" (assignment_expression "lVar5 = 1" (identifier "lVar5") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      } while (param_1[lVar1] != 0);" (do "do") (compound_statement "{\n        lVar1 = lVar5;\n        lVar5 = lVar1 + 1;\n      }" ({ "{") (expression_statement "lVar1 = lVar5;" (assignment_expression "lVar1 = lVar5" (identifier "lVar1") (= "=") (identifier "lVar5")) (; ";")) (expression_statement "lVar5 = lVar1 + 1;" (assignment_expression "lVar5 = lVar1 + 1" (identifier "lVar5") (= "=") (binary_expression "lVar1 + 1" (identifier "lVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1[lVar1] != 0)" (( "(") (binary_expression "param_1[lVar1] != 0" (subscript_expression "param_1[lVar1]" (identifier "param_1") ([ "[") (identifier "lVar1") (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "lVar5 = (long)((int)lVar1 + 1) << 3;" (assignment_expression "lVar5 = (long)((int)lVar1 + 1) << 3" (identifier "lVar5") (= "=") (binary_expression "(long)((int)lVar1 + 1) << 3" (cast_expression "(long)((int)lVar1 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((int)lVar1 + 1)" (( "(") (binary_expression "(int)lVar1 + 1" (cast_expression "(int)lVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar1")) (+ "+") (number_literal "1")) () ")"))) (<< "<<") (number_literal "3"))) (; ";")) (} "}")))) (expression_statement "puVar2 = (undefined8 *)xmalloc(lVar5);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(lVar5)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)xmalloc(lVar5)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(lVar5)" (identifier "xmalloc") (argument_list "(lVar5)" (( "(") (identifier "lVar5") () ")"))))) (; ";")) (expression_statement "puVar4 = puVar2;" (assignment_expression "puVar4 = puVar2" (identifier "puVar4") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (*param_1 != 0) {\n      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\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      lVar5 = 0;\n      do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);\n      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);\n    }" ({ "{") (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      } while (*(long *)((long)param_1 + lVar5) != 0);" (do "do") (compound_statement "{\n        uVar3 = xstrdup();\n        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;\n        lVar5 = lVar5 + 8;\n      }" ({ "{") (expression_statement "uVar3 = xstrdup();" (assignment_expression "uVar3 = xstrdup()" (identifier "uVar3") (= "=") (call_expression "xstrdup()" (identifier "xstrdup") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined8 *)((long)puVar2 + lVar5) = uVar3;" (assignment_expression "*(undefined8 *)((long)puVar2 + lVar5) = uVar3" (pointer_expression "*(undefined8 *)((long)puVar2 + lVar5)" (* "*") (cast_expression "(undefined8 *)((long)puVar2 + lVar5)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar2 + lVar5)" (( "(") (binary_expression "(long)puVar2 + lVar5" (cast_expression "(long)puVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar2")) (+ "+") (identifier "lVar5")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "lVar5 = lVar5 + 8;" (assignment_expression "lVar5 = lVar5 + 8" (identifier "lVar5") (= "=") (binary_expression "lVar5 + 8" (identifier "lVar5") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(long *)((long)param_1 + lVar5) != 0)" (( "(") (binary_expression "*(long *)((long)param_1 + lVar5) != 0" (pointer_expression "*(long *)((long)param_1 + lVar5)" (* "*") (cast_expression "(long *)((long)param_1 + lVar5)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + lVar5)" (( "(") (binary_expression "(long)param_1 + lVar5" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (identifier "lVar5")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar4 = (undefined8 *)(lVar5 + (long)puVar2);" (assignment_expression "puVar4 = (undefined8 *)(lVar5 + (long)puVar2)" (identifier "puVar4") (= "=") (cast_expression "(undefined8 *)(lVar5 + (long)puVar2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + (long)puVar2)" (( "(") (binary_expression "lVar5 + (long)puVar2" (identifier "lVar5") (+ "+") (cast_expression "(long)puVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar2"))) () ")")))) (; ";")) (} "}"))) (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

char ** function_1(char **var_1)

{
  long var_2;
  char **ppcVar2;
  type_1 uVar3;
  char **ppcVar4;
  long var_5;
  
  if (var_1 == (char **)0x0) {
    ppcVar2 = (char **)0x0;
  }
  else {
    if (*var_1 == (char *)0x0) {
      var_5 = 8;
    }
    else {
      var_5 = 1;
      do {
        var_2 = var_5;
        var_5 = var_2 + 1;
      } while (var_1[var_2] != (char *)0x0);
      var_5 = (long)((int)var_2 + 1) << 3;
    }
    ppcVar2 = (char **)var_3(var_5);
    ppcVar4 = ppcVar2;
    if (*var_1 != (char *)0x0) {
      var_5 = 0;
      do {
        uVar3 = var_4();
        *(type_1 *)((long)ppcVar2 + var_5) = uVar3;
        var_5 = var_5 + 8;
      } while (*(long *)((long)var_1 + var_5) != 0);
      ppcVar4 = (char **)(var_5 + (long)ppcVar2);
    }
    *ppcVar4 = (char *)0x0;
  }
  return ppcVar2;
}


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

undefined8 * MASKED(long *param_1)

{
  long lVar1;
  undefined8 *puVar2;
  undefined8 uVar3;
  undefined8 *puVar4;
  long lVar5;
  
  if (param_1 == (long *)0x0) {
    puVar2 = (undefined8 *)0x0;
  }
  else {
    if (*param_1 == 0) {
      lVar5 = 8;
    }
    else {
      lVar5 = 1;
      do {
        lVar1 = lVar5;
        lVar5 = lVar1 + 1;
      } while (param_1[lVar1] != 0);
      lVar5 = (long)((int)lVar1 + 1) << 3;
    }
    puVar2 = (undefined8 *)xmalloc(lVar5);
    puVar4 = puVar2;
    if (*param_1 != 0) {
      lVar5 = 0;
      do {
        uVar3 = xstrdup();
        *(undefined8 *)((long)puVar2 + lVar5) = uVar3;
        lVar5 = lVar5 + 8;
      } while (*(long *)((long)param_1 + lVar5) != 0);
      puVar4 = (undefined8 *)(lVar5 + (long)puVar2);
    }
    *puVar4 = 0;
  }
  return puVar2;
}

