
int sh_stat(char *path,stat *finfo)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  char *pcVar7;
  
  puVar1 = PTR_LAB_00144578;
  if (*path != '\0') {
    if (((*path == '/') && (path[1] == 'd')) &&
       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),
       puVar2 = PTR___environ_00145154, iVar3 == 0)) {
      pcVar7 = path + 8;
      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);
      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);
      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);
      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);
      *(char **)(puVar2 + -0x6550) = path;
      *(undefined4 *)path = uVar6;
      *(undefined4 *)(path + 4) = uVar4;
      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);
    }
                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);
    return iVar3;
  }
  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
  *puVar5 = 2;
  return -1;
}



undefined4 sh_stat(char *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  char *pcVar7;
  
  puVar1 = PTR_LAB_00144578;
  if (*param_1 != '\0') {
    if (((*param_1 == '/') && (param_1[1] == 'd')) &&
       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),
       puVar2 = PTR___environ_00145154, iVar4 == 0)) {
      pcVar7 = param_1 + 8;
      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);
      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)
                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);
      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);
      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);
      *(char **)(puVar2 + -0x6550) = param_1;
      *(undefined4 *)param_1 = uVar6;
      *(undefined4 *)(param_1 + 4) = uVar3;
      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);
    }
                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);
    return uVar3;
  }
  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
  *puVar5 = 2;
  return 0xffffffff;
}


lui gp,0x7
addiu gp,gp,0x4f90
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lb v0,0x0(a0)
beq v0,zero,0x000d76bc
_li v1,0x2f
or s0,a0,zero
bne v0,v1,0x000d7600
_or s1,a1,zero
lb v1,0x1(a0)
li v0,0x64
beq v1,v0,0x000d762c
_lw s2,-0x7fc8(gp)
lw t9,-0x630c(gp)
li a0,0x3
or a2,s1,zero
or a1,s0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr t9
_addiu sp,sp,0x30
li a2,0x8
lw t9,-0x62ec(gp)
jalr t9
_addiu a1,s2,0x7f94
bne v0,zero,0x000d7600
_lw gp,0x10(sp)
lw t9,-0x61b0(gp)
addiu s0,s0,0x8
lw s3,-0x73ec(gp)
jalr t9
_or a0,s0,zero
lw gp,0x10(sp)
addiu a1,v0,0x9
lw t9,-0x7e04(gp)
jalr t9
_lw a0,-0x6550(s3)
addiu a1,s2,0x7f94
lw gp,0x10(sp)
addiu a0,v0,0x8
lw v1,0x7f94(s2)
or s2,v0,zero
lw v0,0x4(a1)
or a1,s0,zero
sw s2,-0x6550(s3)
swl v1,0x0(s2)
swr v1,0x3(s2)
swl v0,0x4(s2)
lw t9,-0x6128(gp)
jalr t9
_swr v0,0x7(s2)
li a0,0x3
lw gp,0x10(sp)
or a2,s1,zero
or a1,s2,zero
b 0x000d7610
_lw t9,-0x630c(gp)
lw t9,-0x6204(gp)
jalr t9
_nop
li v1,0x2
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
sw v1,0x0(v0)
li v0,-0x1
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined4 sh_stat(char *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 sh_stat(char *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}" type_identifier (function_declarator "sh_stat(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "puVar1 = PTR_LAB_00144578;" (assignment_expression "puVar1 = PTR_LAB_00144578" identifier = identifier) ;) (if_statement "if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }" { (if_statement "if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }" if (parenthesized_expression "(((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0))" ( (binary_expression "((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)" (parenthesized_expression "((*param_1 == '/') && (param_1[1] == 'd'))" ( (binary_expression "(*param_1 == '/') && (param_1[1] == 'd')" (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(param_1[1] == 'd')" ( (binary_expression "param_1[1] == 'd'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'d'" ' character ')) ))) )) && (parenthesized_expression "(iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)" ( (comma_expression "iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0" (assignment_expression "iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8)" identifier = (call_expression "(*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8)" (parenthesized_expression "(*(code *)PTR_strncmp_00146254)" ( (pointer_expression "*(code *)PTR_strncmp_00146254" * (cast_expression "(code *)PTR_strncmp_00146254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_00144578 + 0x7f94,8)" ( identifier , (binary_expression "PTR_LAB_00144578 + 0x7f94" identifier + number_literal) , number_literal )))) , (comma_expression "puVar2 = PTR___environ_00145154, iVar4 == 0" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) , (binary_expression "iVar4 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }" { (expression_statement "pcVar7 = param_1 + 8;" (assignment_expression "pcVar7 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(pcVar7)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);" (assignment_expression "param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" identifier = (cast_expression "(char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" ( (pointer_expression "*(code *)PTR_xrealloc_0014473c" * (cast_expression "(code *)PTR_xrealloc_0014473c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" ( (pointer_expression "*(undefined4 *)(puVar2 + -0x6550)" * (cast_expression "(undefined4 *)(puVar2 + -0x6550)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x6550)" ( (binary_expression "puVar2 + -0x6550" identifier + number_literal) )))) , (binary_expression "iVar4 + 9" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + 0x7f94);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + 0x7f94)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + 0x7f94)" * (cast_expression "(undefined4 *)(puVar1 + 0x7f94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7f94)" ( (binary_expression "puVar1 + 0x7f94" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(puVar1 + 0x7f98);" (assignment_expression "uVar3 = *(undefined4 *)(puVar1 + 0x7f98)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + 0x7f98)" * (cast_expression "(undefined4 *)(puVar1 + 0x7f98)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7f98)" ( (binary_expression "puVar1 + 0x7f98" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(puVar2 + -0x6550) = param_1;" (assignment_expression "*(char **)(puVar2 + -0x6550) = param_1" (pointer_expression "*(char **)(puVar2 + -0x6550)" * (cast_expression "(char **)(puVar2 + -0x6550)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x6550)" ( (binary_expression "puVar2 + -0x6550" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)param_1 = uVar6;" (assignment_expression "*(undefined4 *)param_1 = uVar6" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);" (call_expression "(*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8,pcVar7)" ( (binary_expression "param_1 + 8" identifier + number_literal) , identifier ))) ;) })) comment comment (expression_statement "uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);" (assignment_expression "uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2)" identifier = (call_expression "(*(code *)PTR___xstat64_00146234)(3,param_1,param_2)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" ( (pointer_expression "*(code *)PTR___xstat64_00146234" * (cast_expression "(code *)PTR___xstat64_00146234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,param_2)" ( number_literal , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar5 = 2;" (assignment_expression "*puVar5 = 2" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "int sh_stat(char *path,stat *finfo)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*path != '\0') {\n    if (((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)) {\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);\n    return iVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return -1;\n}\n\n" (function_definition "int sh_stat(char *path,stat *finfo)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*path != '\0') {\n    if (((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)) {\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);\n    return iVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return -1;\n}" primitive_type (function_declarator "sh_stat(char *path,stat *finfo)" identifier (parameter_list "(char *path,stat *finfo)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "stat *finfo" type_identifier (pointer_declarator "*finfo" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*path != '\0') {\n    if (((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)) {\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);\n    return iVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return -1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "puVar1 = PTR_LAB_00144578;" (assignment_expression "puVar1 = PTR_LAB_00144578" identifier = identifier) ;) (if_statement "if (*path != '\0') {\n    if (((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)) {\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);\n    return iVar3;\n  }" if (parenthesized_expression "(*path != '\0')" ( (binary_expression "*path != '\0'" (pointer_expression "*path" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)) {\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }\n                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);\n    return iVar3;\n  }" { (if_statement "if (((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)) {\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }" if (parenthesized_expression "(((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0))" ( (binary_expression "((*path == '/') && (path[1] == 'd')) &&\n       (iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)" (parenthesized_expression "((*path == '/') && (path[1] == 'd'))" ( (binary_expression "(*path == '/') && (path[1] == 'd')" (parenthesized_expression "(*path == '/')" ( (binary_expression "*path == '/'" (pointer_expression "*path" * identifier) == (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(path[1] == 'd')" ( (binary_expression "path[1] == 'd'" (subscript_expression "path[1]" identifier [ number_literal ]) == (char_literal "'d'" ' character ')) ))) )) && (parenthesized_expression "(iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0)" ( (comma_expression "iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar3 == 0" (assignment_expression "iVar3 = (*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8)" identifier = (call_expression "(*(code *)PTR_strncmp_00146254)(path,PTR_LAB_00144578 + 0x7f94,8)" (parenthesized_expression "(*(code *)PTR_strncmp_00146254)" ( (pointer_expression "*(code *)PTR_strncmp_00146254" * (cast_expression "(code *)PTR_strncmp_00146254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path,PTR_LAB_00144578 + 0x7f94,8)" ( identifier , (binary_expression "PTR_LAB_00144578 + 0x7f94" identifier + number_literal) , number_literal )))) , (comma_expression "puVar2 = PTR___environ_00145154, iVar3 == 0" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      pcVar7 = path + 8;\n      iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar4 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = path;\n      *(undefined4 *)path = uVar6;\n      *(undefined4 *)(path + 4) = uVar4;\n      (*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);\n    }" { (expression_statement "pcVar7 = path + 8;" (assignment_expression "pcVar7 = path + 8" identifier = (binary_expression "path + 8" identifier + number_literal)) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00146390)(pcVar7)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(pcVar7)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9);" (assignment_expression "path = (char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9)" identifier = (cast_expression "(char *)(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xrealloc_0014473c)(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" ( (pointer_expression "*(code *)PTR_xrealloc_0014473c" * (cast_expression "(code *)PTR_xrealloc_0014473c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar2 + -0x6550),iVar3 + 9)" ( (pointer_expression "*(undefined4 *)(puVar2 + -0x6550)" * (cast_expression "(undefined4 *)(puVar2 + -0x6550)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x6550)" ( (binary_expression "puVar2 + -0x6550" identifier + number_literal) )))) , (binary_expression "iVar3 + 9" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + 0x7f94);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + 0x7f94)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + 0x7f94)" * (cast_expression "(undefined4 *)(puVar1 + 0x7f94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7f94)" ( (binary_expression "puVar1 + 0x7f94" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)(puVar1 + 0x7f98);" (assignment_expression "uVar4 = *(undefined4 *)(puVar1 + 0x7f98)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + 0x7f98)" * (cast_expression "(undefined4 *)(puVar1 + 0x7f98)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7f98)" ( (binary_expression "puVar1 + 0x7f98" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(puVar2 + -0x6550) = path;" (assignment_expression "*(char **)(puVar2 + -0x6550) = path" (pointer_expression "*(char **)(puVar2 + -0x6550)" * (cast_expression "(char **)(puVar2 + -0x6550)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x6550)" ( (binary_expression "puVar2 + -0x6550" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)path = uVar6;" (assignment_expression "*(undefined4 *)path = uVar6" (pointer_expression "*(undefined4 *)path" * (cast_expression "(undefined4 *)path" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(path + 4) = uVar4;" (assignment_expression "*(undefined4 *)(path + 4) = uVar4" (pointer_expression "*(undefined4 *)(path + 4)" * (cast_expression "(undefined4 *)(path + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(path + 4)" ( (binary_expression "path + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(path + 8,pcVar7);" (call_expression "(*(code *)PTR_strcpy_00146418)(path + 8,pcVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path + 8,pcVar7)" ( (binary_expression "path + 8" identifier + number_literal) , identifier ))) ;) })) comment comment (expression_statement "iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo);" (assignment_expression "iVar3 = (*(code *)PTR___xstat64_00146234)(3,path,finfo)" identifier = (call_expression "(*(code *)PTR___xstat64_00146234)(3,path,finfo)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" ( (pointer_expression "*(code *)PTR___xstat64_00146234" * (cast_expression "(code *)PTR___xstat64_00146234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,path,finfo)" ( number_literal , identifier , identifier )))) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar5 = 2;" (assignment_expression "*puVar5 = 2" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return -1;" return number_literal ;) })))
(translation_unit "undefined4 sh_stat(char *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 sh_stat(char *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}" type_identifier (function_declarator "sh_stat(char *param_1,undefined4 param_2)" identifier (parameter_list "(char *param_1,undefined4 param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (expression_statement "puVar1 = PTR_LAB_00144578;" (assignment_expression "puVar1 = PTR_LAB_00144578" identifier = identifier) ;) (if_statement "if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }" if (parenthesized_expression "(*param_1 != '\0')" ( (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }" { (if_statement "if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }" if (parenthesized_expression "(((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0))" ( (binary_expression "((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)" (parenthesized_expression "((*param_1 == '/') && (param_1[1] == 'd'))" ( (binary_expression "(*param_1 == '/') && (param_1[1] == 'd')" (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) && (parenthesized_expression "(param_1[1] == 'd')" ( (binary_expression "param_1[1] == 'd'" (subscript_expression "param_1[1]" identifier [ number_literal ]) == (char_literal "'d'" ' character ')) ))) )) && (parenthesized_expression "(iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)" ( (comma_expression "iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0" (assignment_expression "iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8)" identifier = (call_expression "(*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8)" (parenthesized_expression "(*(code *)PTR_strncmp_00146254)" ( (pointer_expression "*(code *)PTR_strncmp_00146254" * (cast_expression "(code *)PTR_strncmp_00146254" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_00144578 + 0x7f94,8)" ( identifier , (binary_expression "PTR_LAB_00144578 + 0x7f94" identifier + number_literal) , number_literal )))) , (comma_expression "puVar2 = PTR___environ_00145154, iVar4 == 0" (assignment_expression "puVar2 = PTR___environ_00145154" identifier = identifier) , (binary_expression "iVar4 == 0" identifier == number_literal))) ))) )) (compound_statement "{\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }" { (expression_statement "pcVar7 = param_1 + 8;" (assignment_expression "pcVar7 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(pcVar7)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);" (assignment_expression "param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" identifier = (cast_expression "(char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" ( (pointer_expression "*(code *)PTR_xrealloc_0014473c" * (cast_expression "(code *)PTR_xrealloc_0014473c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" ( (pointer_expression "*(undefined4 *)(puVar2 + -0x6550)" * (cast_expression "(undefined4 *)(puVar2 + -0x6550)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x6550)" ( (binary_expression "puVar2 + -0x6550" identifier + number_literal) )))) , (binary_expression "iVar4 + 9" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + 0x7f94);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + 0x7f94)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + 0x7f94)" * (cast_expression "(undefined4 *)(puVar1 + 0x7f94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7f94)" ( (binary_expression "puVar1 + 0x7f94" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(puVar1 + 0x7f98);" (assignment_expression "uVar3 = *(undefined4 *)(puVar1 + 0x7f98)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + 0x7f98)" * (cast_expression "(undefined4 *)(puVar1 + 0x7f98)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x7f98)" ( (binary_expression "puVar1 + 0x7f98" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(puVar2 + -0x6550) = param_1;" (assignment_expression "*(char **)(puVar2 + -0x6550) = param_1" (pointer_expression "*(char **)(puVar2 + -0x6550)" * (cast_expression "(char **)(puVar2 + -0x6550)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + -0x6550)" ( (binary_expression "puVar2 + -0x6550" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)param_1 = uVar6;" (assignment_expression "*(undefined4 *)param_1 = uVar6" (pointer_expression "*(undefined4 *)param_1" * (cast_expression "(undefined4 *)param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);" (call_expression "(*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 8,pcVar7)" ( (binary_expression "param_1 + 8" identifier + number_literal) , identifier ))) ;) })) (expression_statement "uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);" (assignment_expression "uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2)" identifier = (call_expression "(*(code *)PTR___xstat64_00146234)(3,param_1,param_2)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" ( (pointer_expression "*(code *)PTR___xstat64_00146234" * (cast_expression "(code *)PTR___xstat64_00146234" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,param_1,param_2)" ( number_literal , identifier , identifier )))) ;) (return_statement "return uVar3;" return identifier ;) })) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" ( (pointer_expression "*(code *)PTR___errno_location_0014633c" * (cast_expression "(code *)PTR___errno_location_0014633c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar5 = 2;" (assignment_expression "*puVar5 = 2" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' character ')) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT )))) , (comma_expression (assignment_expression IDENT = IDENT) , (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 *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 sh_stat(char *param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}" (type_identifier "undefined4") (function_declarator "sh_stat(char *param_1,undefined4 param_2)" (identifier "sh_stat") (parameter_list "(char *param_1,undefined4 param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  \n  puVar1 = PTR_LAB_00144578;\n  if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }\n  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();\n  *puVar5 = 2;\n  return 0xffffffff;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (expression_statement "puVar1 = PTR_LAB_00144578;" (assignment_expression "puVar1 = PTR_LAB_00144578" (identifier "puVar1") (= "=") (identifier "PTR_LAB_00144578")) (; ";")) (if_statement "if (*param_1 != '\0') {\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(*param_1 != '\0')" (( "(") (binary_expression "*param_1 != '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }\n                    \n                    \n    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);\n    return uVar3;\n  }" ({ "{") (if_statement "if (((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)) {\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }" (if "if") (parenthesized_expression "(((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0))" (( "(") (binary_expression "((*param_1 == '/') && (param_1[1] == 'd')) &&\n       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)" (parenthesized_expression "((*param_1 == '/') && (param_1[1] == 'd'))" (( "(") (binary_expression "(*param_1 == '/') && (param_1[1] == 'd')" (parenthesized_expression "(*param_1 == '/')" (( "(") (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == 'd')" (( "(") (binary_expression "param_1[1] == 'd'" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'d'" (' "'") (character "d") (' "'"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0)" (( "(") (comma_expression "iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),\n       puVar2 = PTR___environ_00145154, iVar4 == 0" (assignment_expression "iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8)" (parenthesized_expression "(*(code *)PTR_strncmp_00146254)" (( "(") (pointer_expression "*(code *)PTR_strncmp_00146254" (* "*") (cast_expression "(code *)PTR_strncmp_00146254" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncmp_00146254"))) () ")")) (argument_list "(param_1,PTR_LAB_00144578 + 0x7f94,8)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_00144578 + 0x7f94" (identifier "PTR_LAB_00144578") (+ "+") (number_literal "0x7f94")) (, ",") (number_literal "8") () ")")))) (, ",") (comma_expression "puVar2 = PTR___environ_00145154, iVar4 == 0" (assignment_expression "puVar2 = PTR___environ_00145154" (identifier "puVar2") (= "=") (identifier "PTR___environ_00145154")) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")))) () ")"))) () ")")) (compound_statement "{\n      pcVar7 = param_1 + 8;\n      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);\n      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);\n      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);\n      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);\n      *(char **)(puVar2 + -0x6550) = param_1;\n      *(undefined4 *)param_1 = uVar6;\n      *(undefined4 *)(param_1 + 4) = uVar3;\n      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);\n    }" ({ "{") (expression_statement "pcVar7 = param_1 + 8;" (assignment_expression "pcVar7 = param_1 + 8" (identifier "pcVar7") (= "=") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(pcVar7)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")")))) (; ";")) (expression_statement "param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);" (assignment_expression "param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" (identifier "param_1") (= "=") (cast_expression "(char *)(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xrealloc_0014473c)\n                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" (parenthesized_expression "(*(code *)PTR_xrealloc_0014473c)" (( "(") (pointer_expression "*(code *)PTR_xrealloc_0014473c" (* "*") (cast_expression "(code *)PTR_xrealloc_0014473c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xrealloc_0014473c"))) () ")")) (argument_list "(*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9)" (( "(") (pointer_expression "*(undefined4 *)(puVar2 + -0x6550)" (* "*") (cast_expression "(undefined4 *)(puVar2 + -0x6550)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x6550)" (( "(") (binary_expression "puVar2 + -0x6550" (identifier "puVar2") (+ "+") (number_literal "-0x6550")) () ")")))) (, ",") (binary_expression "iVar4 + 9" (identifier "iVar4") (+ "+") (number_literal "9")) () ")"))))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + 0x7f94);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + 0x7f94)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(puVar1 + 0x7f94)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x7f94)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x7f94)" (( "(") (binary_expression "puVar1 + 0x7f94" (identifier "puVar1") (+ "+") (number_literal "0x7f94")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(puVar1 + 0x7f98);" (assignment_expression "uVar3 = *(undefined4 *)(puVar1 + 0x7f98)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(puVar1 + 0x7f98)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x7f98)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x7f98)" (( "(") (binary_expression "puVar1 + 0x7f98" (identifier "puVar1") (+ "+") (number_literal "0x7f98")) () ")"))))) (; ";")) (expression_statement "*(char **)(puVar2 + -0x6550) = param_1;" (assignment_expression "*(char **)(puVar2 + -0x6550) = param_1" (pointer_expression "*(char **)(puVar2 + -0x6550)" (* "*") (cast_expression "(char **)(puVar2 + -0x6550)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + -0x6550)" (( "(") (binary_expression "puVar2 + -0x6550" (identifier "puVar2") (+ "+") (number_literal "-0x6550")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)param_1 = uVar6;" (assignment_expression "*(undefined4 *)param_1 = uVar6" (pointer_expression "*(undefined4 *)param_1" (* "*") (cast_expression "(undefined4 *)param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "param_1"))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar3;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar3" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "(*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);" (call_expression "(*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(param_1 + 8,pcVar7)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) (, ",") (identifier "pcVar7") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);" (assignment_expression "uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR___xstat64_00146234)(3,param_1,param_2)" (parenthesized_expression "(*(code *)PTR___xstat64_00146234)" (( "(") (pointer_expression "*(code *)PTR___xstat64_00146234" (* "*") (cast_expression "(code *)PTR___xstat64_00146234" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___xstat64_00146234"))) () ")")) (argument_list "(3,param_1,param_2)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_0014633c)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0014633c)()" (parenthesized_expression "(*(code *)PTR___errno_location_0014633c)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0014633c" (* "*") (cast_expression "(code *)PTR___errno_location_0014633c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0014633c"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar5 = 2;" (assignment_expression "*puVar5 = 2" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "2")) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) right: (parenthesized_expression (comma_expression left: (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) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (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: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (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 (number_literal) (identifier) (identifier))))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))))

undefined4 MASKED(char *param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  char *pcVar7;
  
  puVar1 = PTR_LAB_00144578;
  if (*param_1 != '\0') {
    if (((*param_1 == '/') && (param_1[1] == 'd')) &&
       (iVar4 = (*(code *)PTR_strncmp_00146254)(param_1,PTR_LAB_00144578 + 0x7f94,8),
       puVar2 = PTR___environ_00145154, iVar4 == 0)) {
      pcVar7 = param_1 + 8;
      iVar4 = (*(code *)PTR_strlen_00146390)(pcVar7);
      param_1 = (char *)(*(code *)PTR_xrealloc_0014473c)
                                  (*(undefined4 *)(puVar2 + -0x6550),iVar4 + 9);
      uVar6 = *(undefined4 *)(puVar1 + 0x7f94);
      uVar3 = *(undefined4 *)(puVar1 + 0x7f98);
      *(char **)(puVar2 + -0x6550) = param_1;
      *(undefined4 *)param_1 = uVar6;
      *(undefined4 *)(param_1 + 4) = uVar3;
      (*(code *)PTR_strcpy_00146418)(param_1 + 8,pcVar7);
    }
                    /* WARNING: Could not recover jumptable at 0x000d7624. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    uVar3 = (*(code *)PTR___xstat64_00146234)(3,param_1,param_2);
    return uVar3;
  }
  puVar5 = (undefined4 *)(*(code *)PTR___errno_location_0014633c)();
  *puVar5 = 2;
  return 0xffffffff;
}

