
char * make_dir_path(char *path,mode_t mode)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined4 uVar4;
  char *pcVar5;
  int iVar6;
  undefined *puVar7;
  undefined *puVar8;
  
  iVar6 = 0;
  puVar7 = PTR_DAT_0006f074 + -0x2a9c;
  puVar8 = PTR_LAB_0006f068 + 0x31dc;
  do {
    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);
    iVar6 = iVar6 + iVar1;
    if (0 < iVar6) {
      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);
      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);
      if ((iVar1 < 0) &&
         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {
        uVar4 = (*(code *)PTR_strerror_0006f554)();
        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);
        (*(code *)PTR_safefree_0006f084)(uVar2);
        return pcVar5;
      }
      (*(code *)PTR_safefree_0006f084)(uVar2);
    }
    if (path[iVar6] == '\0') {
      return (char *)0x0;
    }
    iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);
    iVar6 = iVar6 + iVar1;
  } while( true );
}



undefined4 make_dir_path(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined4 uVar4;
  int iVar5;
  undefined *puVar6;
  undefined *puVar7;
  
  iVar5 = 0;
  puVar6 = PTR_DAT_0006f074 + -0x2a9c;
  puVar7 = PTR_LAB_0006f068 + 0x31dc;
  do {
    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);
    iVar5 = iVar5 + iVar1;
    if (0 < iVar5) {
      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);
      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);
      if ((iVar1 < 0) &&
         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {
        uVar4 = (*(code *)PTR_strerror_0006f554)();
        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);
        (*(code *)PTR_safefree_0006f084)(uVar2);
        return uVar4;
      }
      (*(code *)PTR_safefree_0006f084)(uVar2);
    }
    if (*(char *)(param_1 + iVar5) == '\0') {
      return 0;
    }
    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);
    iVar5 = iVar5 + iVar1;
  } while( true );
}


lui gp,0x3
addiu gp,gp,-0x64c0
addu gp,gp,t9
addiu sp,sp,-0x38
sw ra,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s4,a1,zero
or s0,zero,zero
lw s2,-0x7fbc(gp)
addiu s2,s2,-0x2a9c
lw s3,-0x7fc8(gp)
addiu s3,s3,0x31dc
b 0x0004d580
_li s5,0x11
or a0,s6,zero
lw t9,-0x7fac(gp)
jalr t9
_nop
lw gp,0x10(sp)
addu a0,s1,s0
lb v0,0x0(a0)
beq v0,zero,0x0004d648
_or a1,s2,zero
lw t9,-0x7b94(gp)
jalr t9
_nop
lw gp,0x10(sp)
addu s0,s0,v0
or a1,s2,zero
addu a0,s1,s0
lw t9,-0x7a70(gp)
jalr t9
_nop
lw gp,0x10(sp)
addu s0,s0,v0
blez s0,0x0004d560
_addu a0,s1,s0
or a2,s1,zero
or a1,s0,zero
or a0,s3,zero
lw t9,-0x7e10(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s6,v0,zero
or a1,s4,zero
or a0,v0,zero
lw t9,-0x7b1c(gp)
jalr t9
_nop
lw gp,0x10(sp)
bgez v0,0x0004d548
_lw t9,-0x7b20(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(v0)
beq a0,s5,0x0004d548
_lw t9,-0x7adc(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a2,v0,zero
or a1,s6,zero
lw a0,-0x7fbc(gp)
addiu a0,a0,-0x2b28
lw t9,-0x7e10(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a0,s6,zero
lw t9,-0x7fac(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x0004d650
_or v0,s0,zero
or s0,zero,zero
or v0,s0,zero
lw ra,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 make_dir_path(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}\n\n" (function_definition "undefined4 make_dir_path(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}" type_identifier (function_declarator "make_dir_path(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = PTR_DAT_0006f074 + -0x2a9c;" (assignment_expression "puVar6 = PTR_DAT_0006f074 + -0x2a9c" identifier = (binary_expression "PTR_DAT_0006f074 + -0x2a9c" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_LAB_0006f068 + 0x31dc;" (assignment_expression "puVar7 = PTR_LAB_0006f068 + 0x31dc" identifier = (binary_expression "PTR_LAB_0006f068 + 0x31dc" identifier + number_literal)) ;) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );" do (compound_statement "{\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6)" identifier = (call_expression "(*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6)" (parenthesized_expression "(*(code *)PTR_strcspn_0006f5c0)" ( (pointer_expression "*(code *)PTR_strcspn_0006f5c0" * (cast_expression "(code *)PTR_strcspn_0006f5c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + iVar5,puVar6)" ( (binary_expression "param_1 + iVar5" identifier + identifier) , identifier )))) ;) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (if_statement "if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);" (assignment_expression "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1)" identifier = (call_expression "(*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" ( (pointer_expression "*(code *)PTR_dupprintf_0006f220" * (cast_expression "(code *)PTR_dupprintf_0006f220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7,iVar5,param_1)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2)" identifier = (call_expression "(*(code *)PTR_mkdir_0006f514)(uVar2,param_2)" (parenthesized_expression "(*(code *)PTR_mkdir_0006f514)" ( (pointer_expression "*(code *)PTR_mkdir_0006f514" * (cast_expression "(code *)PTR_mkdir_0006f514" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }" if (parenthesized_expression "((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11))" ( (binary_expression "(iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0006f510)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0006f510)()" (parenthesized_expression "(*(code *)PTR___errno_location_0006f510)" ( (pointer_expression "*(code *)PTR___errno_location_0006f510" * (cast_expression "(code *)PTR___errno_location_0006f510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_strerror_0006f554)();" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0006f554)()" identifier = (call_expression "(*(code *)PTR_strerror_0006f554)()" (parenthesized_expression "(*(code *)PTR_strerror_0006f554)" ( (pointer_expression "*(code *)PTR_strerror_0006f554" * (cast_expression "(code *)PTR_strerror_0006f554" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" identifier = (call_expression "(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" ( (pointer_expression "*(code *)PTR_dupprintf_0006f220" * (cast_expression "(code *)PTR_dupprintf_0006f220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" ( (binary_expression "PTR_DAT_0006f074 + -0x2b28" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" ( (pointer_expression "*(code *)PTR_safefree_0006f084" * (cast_expression "(code *)PTR_safefree_0006f084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" ( (pointer_expression "*(code *)PTR_safefree_0006f084" * (cast_expression "(code *)PTR_safefree_0006f084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (if_statement "if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(param_1 + iVar5) == '\0')" ( (binary_expression "*(char *)(param_1 + iVar5) == '\0'" (pointer_expression "*(char *)(param_1 + iVar5)" * (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6)" identifier = (call_expression "(*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6)" (parenthesized_expression "(*(code *)PTR_strspn_0006f49c)" ( (pointer_expression "*(code *)PTR_strspn_0006f49c" * (cast_expression "(code *)PTR_strspn_0006f49c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((char *)(param_1 + iVar5),puVar6)" ( (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) ))) , identifier )))) ;) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "char * make_dir_path(char *path,mode_t mode)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  \n  iVar6 = 0;\n  puVar7 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar8 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n    if (0 < iVar6) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (path[iVar6] == '\0') {\n      return (char *)0x0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n  } while( true );\n}\n\n" (function_definition "char * make_dir_path(char *path,mode_t mode)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  \n  iVar6 = 0;\n  puVar7 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar8 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n    if (0 < iVar6) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (path[iVar6] == '\0') {\n      return (char *)0x0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n  } while( true );\n}" primitive_type (pointer_declarator "* make_dir_path(char *path,mode_t mode)" * (function_declarator "make_dir_path(char *path,mode_t mode)" identifier (parameter_list "(char *path,mode_t mode)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "mode_t mode" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  \n  iVar6 = 0;\n  puVar7 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar8 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n    if (0 < iVar6) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (path[iVar6] == '\0') {\n      return (char *)0x0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_DAT_0006f074 + -0x2a9c;" (assignment_expression "puVar7 = PTR_DAT_0006f074 + -0x2a9c" identifier = (binary_expression "PTR_DAT_0006f074 + -0x2a9c" identifier + number_literal)) ;) (expression_statement "puVar8 = PTR_LAB_0006f068 + 0x31dc;" (assignment_expression "puVar8 = PTR_LAB_0006f068 + 0x31dc" identifier = (binary_expression "PTR_LAB_0006f068 + 0x31dc" identifier + number_literal)) ;) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n    if (0 < iVar6) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (path[iVar6] == '\0') {\n      return (char *)0x0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n  } while( true );" do (compound_statement "{\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n    if (0 < iVar6) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (path[iVar6] == '\0') {\n      return (char *)0x0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);\n    iVar6 = iVar6 + iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7);" (assignment_expression "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7)" identifier = (call_expression "(*(code *)PTR_strcspn_0006f5c0)(path + iVar6,puVar7)" (parenthesized_expression "(*(code *)PTR_strcspn_0006f5c0)" ( (pointer_expression "*(code *)PTR_strcspn_0006f5c0" * (cast_expression "(code *)PTR_strcspn_0006f5c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path + iVar6,puVar7)" ( (binary_expression "path + iVar6" identifier + identifier) , identifier )))) ;) (expression_statement "iVar6 = iVar6 + iVar1;" (assignment_expression "iVar6 = iVar6 + iVar1" identifier = (binary_expression "iVar6 + iVar1" identifier + identifier)) ;) (if_statement "if (0 < iVar6) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path);" (assignment_expression "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path)" identifier = (call_expression "(*(code *)PTR_dupprintf_0006f220)(puVar8,iVar6,path)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" ( (pointer_expression "*(code *)PTR_dupprintf_0006f220" * (cast_expression "(code *)PTR_dupprintf_0006f220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,iVar6,path)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode);" (assignment_expression "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,mode)" identifier = (call_expression "(*(code *)PTR_mkdir_0006f514)(uVar2,mode)" (parenthesized_expression "(*(code *)PTR_mkdir_0006f514)" ( (pointer_expression "*(code *)PTR_mkdir_0006f514" * (cast_expression "(code *)PTR_mkdir_0006f514" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,mode)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }" if (parenthesized_expression "((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11))" ( (binary_expression "(iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0006f510)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0006f510)()" (parenthesized_expression "(*(code *)PTR___errno_location_0006f510)" ( (pointer_expression "*(code *)PTR___errno_location_0006f510" * (cast_expression "(code *)PTR___errno_location_0006f510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return pcVar5;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_strerror_0006f554)();" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0006f554)()" identifier = (call_expression "(*(code *)PTR_strerror_0006f554)()" (parenthesized_expression "(*(code *)PTR_strerror_0006f554)" ( (pointer_expression "*(code *)PTR_strerror_0006f554" * (cast_expression "(code *)PTR_strerror_0006f554" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);" (assignment_expression "pcVar5 = (char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" identifier = (cast_expression "(char *)(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" ( (pointer_expression "*(code *)PTR_dupprintf_0006f220" * (cast_expression "(code *)PTR_dupprintf_0006f220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" ( (binary_expression "PTR_DAT_0006f074 + -0x2b28" identifier + number_literal) , identifier , identifier ))))) ;) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" ( (pointer_expression "*(code *)PTR_safefree_0006f084" * (cast_expression "(code *)PTR_safefree_0006f084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return pcVar5;" return identifier ;) })) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" ( (pointer_expression "*(code *)PTR_safefree_0006f084" * (cast_expression "(code *)PTR_safefree_0006f084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (if_statement "if (path[iVar6] == '\0') {\n      return (char *)0x0;\n    }" if (parenthesized_expression "(path[iVar6] == '\0')" ( (binary_expression "path[iVar6] == '\0'" (subscript_expression "path[iVar6]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return (char *)0x0;\n    }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7)" identifier = (call_expression "(*(code *)PTR_strspn_0006f49c)(path + iVar6,puVar7)" (parenthesized_expression "(*(code *)PTR_strspn_0006f49c)" ( (pointer_expression "*(code *)PTR_strspn_0006f49c" * (cast_expression "(code *)PTR_strspn_0006f49c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path + iVar6,puVar7)" ( (binary_expression "path + iVar6" identifier + identifier) , identifier )))) ;) (expression_statement "iVar6 = iVar6 + iVar1;" (assignment_expression "iVar6 = iVar6 + iVar1" identifier = (binary_expression "iVar6 + iVar1" identifier + identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 make_dir_path(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}\n\n" (function_definition "undefined4 make_dir_path(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}" type_identifier (function_declarator "make_dir_path(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar6 = PTR_DAT_0006f074 + -0x2a9c;" (assignment_expression "puVar6 = PTR_DAT_0006f074 + -0x2a9c" identifier = (binary_expression "PTR_DAT_0006f074 + -0x2a9c" identifier + number_literal)) ;) (expression_statement "puVar7 = PTR_LAB_0006f068 + 0x31dc;" (assignment_expression "puVar7 = PTR_LAB_0006f068 + 0x31dc" identifier = (binary_expression "PTR_LAB_0006f068 + 0x31dc" identifier + number_literal)) ;) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );" do (compound_statement "{\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6)" identifier = (call_expression "(*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6)" (parenthesized_expression "(*(code *)PTR_strcspn_0006f5c0)" ( (pointer_expression "*(code *)PTR_strcspn_0006f5c0" * (cast_expression "(code *)PTR_strcspn_0006f5c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + iVar5,puVar6)" ( (binary_expression "param_1 + iVar5" identifier + identifier) , identifier )))) ;) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) (if_statement "if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" if (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) )) (compound_statement "{\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" { (expression_statement "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);" (assignment_expression "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1)" identifier = (call_expression "(*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" ( (pointer_expression "*(code *)PTR_dupprintf_0006f220" * (cast_expression "(code *)PTR_dupprintf_0006f220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7,iVar5,param_1)" ( identifier , identifier , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2)" identifier = (call_expression "(*(code *)PTR_mkdir_0006f514)(uVar2,param_2)" (parenthesized_expression "(*(code *)PTR_mkdir_0006f514)" ( (pointer_expression "*(code *)PTR_mkdir_0006f514" * (cast_expression "(code *)PTR_mkdir_0006f514" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,param_2)" ( identifier , identifier )))) ;) (if_statement "if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }" if (parenthesized_expression "((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11))" ( (binary_expression "(iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) && (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" ( (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_0006f510)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_0006f510)()" (parenthesized_expression "(*(code *)PTR___errno_location_0006f510)" ( (pointer_expression "*(code *)PTR___errno_location_0006f510" * (cast_expression "(code *)PTR___errno_location_0006f510" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" * identifier) != number_literal)) ))) )) (compound_statement "{\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }" { (expression_statement "uVar4 = (*(code *)PTR_strerror_0006f554)();" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0006f554)()" identifier = (call_expression "(*(code *)PTR_strerror_0006f554)()" (parenthesized_expression "(*(code *)PTR_strerror_0006f554)" ( (pointer_expression "*(code *)PTR_strerror_0006f554" * (cast_expression "(code *)PTR_strerror_0006f554" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" identifier = (call_expression "(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" ( (pointer_expression "*(code *)PTR_dupprintf_0006f220" * (cast_expression "(code *)PTR_dupprintf_0006f220" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" ( (binary_expression "PTR_DAT_0006f074 + -0x2b28" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" ( (pointer_expression "*(code *)PTR_safefree_0006f084" * (cast_expression "(code *)PTR_safefree_0006f084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" ( (pointer_expression "*(code *)PTR_safefree_0006f084" * (cast_expression "(code *)PTR_safefree_0006f084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) })) (if_statement "if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(param_1 + iVar5) == '\0')" ( (binary_expression "*(char *)(param_1 + iVar5) == '\0'" (pointer_expression "*(char *)(param_1 + iVar5)" * (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6)" identifier = (call_expression "(*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6)" (parenthesized_expression "(*(code *)PTR_strspn_0006f49c)" ( (pointer_expression "*(code *)PTR_strspn_0006f49c" * (cast_expression "(code *)PTR_strspn_0006f49c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((char *)(param_1 + iVar5),puVar6)" ( (cast_expression "(char *)(param_1 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + iVar5)" ( (binary_expression "param_1 + iVar5" identifier + identifier) ))) , identifier )))) ;) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" identifier = (binary_expression "iVar5 + iVar1" identifier + identifier)) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) , (binary_expression (pointer_expression * IDENT) != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 make_dir_path(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "make_dir_path(int param_1,undefined4 param_2)" (identifier "make_dir_path") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  int iVar5;\n  undefined *puVar6;\n  undefined *puVar7;\n  \n  iVar5 = 0;\n  puVar6 = PTR_DAT_0006f074 + -0x2a9c;\n  puVar7 = PTR_LAB_0006f068 + 0x31dc;\n  do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar6 = PTR_DAT_0006f074 + -0x2a9c;" (assignment_expression "puVar6 = PTR_DAT_0006f074 + -0x2a9c" (identifier "puVar6") (= "=") (binary_expression "PTR_DAT_0006f074 + -0x2a9c" (identifier "PTR_DAT_0006f074") (+ "+") (number_literal "-0x2a9c"))) (; ";")) (expression_statement "puVar7 = PTR_LAB_0006f068 + 0x31dc;" (assignment_expression "puVar7 = PTR_LAB_0006f068 + 0x31dc" (identifier "puVar7") (= "=") (binary_expression "PTR_LAB_0006f068 + 0x31dc" (identifier "PTR_LAB_0006f068") (+ "+") (number_literal "0x31dc"))) (; ";")) (do_statement "do {\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  } while( true );" (do "do") (compound_statement "{\n    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);\n    iVar5 = iVar5 + iVar1;\n    if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }\n    if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }\n    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);\n    iVar5 = iVar5 + iVar1;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6)" (parenthesized_expression "(*(code *)PTR_strcspn_0006f5c0)" (( "(") (pointer_expression "*(code *)PTR_strcspn_0006f5c0" (* "*") (cast_expression "(code *)PTR_strcspn_0006f5c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcspn_0006f5c0"))) () ")")) (argument_list "(param_1 + iVar5,puVar6)" (( "(") (binary_expression "param_1 + iVar5" (identifier "param_1") (+ "+") (identifier "iVar5")) (, ",") (identifier "puVar6") () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + iVar1" (identifier "iVar5") (+ "+") (identifier "iVar1"))) (; ";")) (if_statement "if (0 < iVar5) {\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" (if "if") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);\n      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);\n      if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }\n      (*(code *)PTR_safefree_0006f084)(uVar2);\n    }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);" (assignment_expression "uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_0006f220" (* "*") (cast_expression "(code *)PTR_dupprintf_0006f220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_0006f220"))) () ")")) (argument_list "(puVar7,iVar5,param_1)" (( "(") (identifier "puVar7") (, ",") (identifier "iVar5") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_mkdir_0006f514)(uVar2,param_2)" (parenthesized_expression "(*(code *)PTR_mkdir_0006f514)" (( "(") (pointer_expression "*(code *)PTR_mkdir_0006f514" (* "*") (cast_expression "(code *)PTR_mkdir_0006f514" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_mkdir_0006f514"))) () ")")) (argument_list "(uVar2,param_2)" (( "(") (identifier "uVar2") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }" (if "if") (parenthesized_expression "((iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11))" (( "(") (binary_expression "(iVar1 < 0) &&\n         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)" (( "(") (comma_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11" (assignment_expression "piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_0006f510)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_0006f510)()" (parenthesized_expression "(*(code *)PTR___errno_location_0006f510)" (( "(") (pointer_expression "*(code *)PTR___errno_location_0006f510" (* "*") (cast_expression "(code *)PTR___errno_location_0006f510" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_0006f510"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar3 != 0x11" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0x11"))) () ")"))) () ")")) (compound_statement "{\n        uVar4 = (*(code *)PTR_strerror_0006f554)();\n        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);\n        (*(code *)PTR_safefree_0006f084)(uVar2);\n        return uVar4;\n      }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_strerror_0006f554)();" (assignment_expression "uVar4 = (*(code *)PTR_strerror_0006f554)()" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strerror_0006f554)()" (parenthesized_expression "(*(code *)PTR_strerror_0006f554)" (( "(") (pointer_expression "*(code *)PTR_strerror_0006f554" (* "*") (cast_expression "(code *)PTR_strerror_0006f554" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_0006f554"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);" (assignment_expression "uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" (parenthesized_expression "(*(code *)PTR_dupprintf_0006f220)" (( "(") (pointer_expression "*(code *)PTR_dupprintf_0006f220" (* "*") (cast_expression "(code *)PTR_dupprintf_0006f220" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupprintf_0006f220"))) () ")")) (argument_list "(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4)" (( "(") (binary_expression "PTR_DAT_0006f074 + -0x2b28" (identifier "PTR_DAT_0006f074") (+ "+") (number_literal "-0x2b28")) (, ",") (identifier "uVar2") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" (( "(") (pointer_expression "*(code *)PTR_safefree_0006f084" (* "*") (cast_expression "(code *)PTR_safefree_0006f084" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_0006f084"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_safefree_0006f084)(uVar2);" (call_expression "(*(code *)PTR_safefree_0006f084)(uVar2)" (parenthesized_expression "(*(code *)PTR_safefree_0006f084)" (( "(") (pointer_expression "*(code *)PTR_safefree_0006f084" (* "*") (cast_expression "(code *)PTR_safefree_0006f084" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_0006f084"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + iVar5) == '\0') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + iVar5) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + iVar5) == '\0'" (pointer_expression "*(char *)(param_1 + iVar5)" (* "*") (cast_expression "(char *)(param_1 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5)" (( "(") (binary_expression "param_1 + iVar5" (identifier "param_1") (+ "+") (identifier "iVar5")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);" (assignment_expression "iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6)" (parenthesized_expression "(*(code *)PTR_strspn_0006f49c)" (( "(") (pointer_expression "*(code *)PTR_strspn_0006f49c" (* "*") (cast_expression "(code *)PTR_strspn_0006f49c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strspn_0006f49c"))) () ")")) (argument_list "((char *)(param_1 + iVar5),puVar6)" (( "(") (cast_expression "(char *)(param_1 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + iVar5)" (( "(") (binary_expression "param_1 + iVar5" (identifier "param_1") (+ "+") (identifier "iVar5")) () ")"))) (, ",") (identifier "puVar6") () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + iVar1;" (assignment_expression "iVar5 = iVar5 + iVar1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + iVar1" (identifier "iVar5") (+ "+") (identifier "iVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

char * function_1(char *var_3,type_1 mode)

{
  int var_5;
  type_2 uVar2;
  int *piVar3;
  type_2 uVar4;
  char *pcVar5;
  int var_4;
  type_3 *puVar7;
  type_3 *puVar8;
  
  var_4 = 0;
  puVar7 = var_1 + -0x2a9c;
  puVar8 = var_2 + 0x31dc;
  do {
    var_5 = (*(type_4 *)PTR_strcspn_0006f5c0)(var_3 + var_4,puVar7);
    var_4 = var_4 + var_5;
    if (0 < var_4) {
      uVar2 = (*(type_4 *)PTR_dupprintf_0006f220)(puVar8,var_4,var_3);
      var_5 = (*(type_4 *)PTR_mkdir_0006f514)(uVar2,mode);
      if ((var_5 < 0) &&
         (piVar3 = (int *)(*(type_4 *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {
        uVar4 = (*(type_4 *)PTR_strerror_0006f554)();
        pcVar5 = (char *)(*(type_4 *)PTR_dupprintf_0006f220)(var_1 + -0x2b28,uVar2,uVar4);
        (*(type_4 *)PTR_safefree_0006f084)(uVar2);
        return pcVar5;
      }
      (*(type_4 *)PTR_safefree_0006f084)(uVar2);
    }
    if (var_3[var_4] == '\0') {
      return (char *)0x0;
    }
    var_5 = (*(type_4 *)PTR_strspn_0006f49c)(var_3 + var_4,puVar7);
    var_4 = var_4 + var_5;
  } while( true );
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  int *piVar3;
  undefined4 uVar4;
  int iVar5;
  undefined *puVar6;
  undefined *puVar7;
  
  iVar5 = 0;
  puVar6 = PTR_DAT_0006f074 + -0x2a9c;
  puVar7 = PTR_LAB_0006f068 + 0x31dc;
  do {
    iVar1 = (*(code *)PTR_strcspn_0006f5c0)(param_1 + iVar5,puVar6);
    iVar5 = iVar5 + iVar1;
    if (0 < iVar5) {
      uVar2 = (*(code *)PTR_dupprintf_0006f220)(puVar7,iVar5,param_1);
      iVar1 = (*(code *)PTR_mkdir_0006f514)(uVar2,param_2);
      if ((iVar1 < 0) &&
         (piVar3 = (int *)(*(code *)PTR___errno_location_0006f510)(), *piVar3 != 0x11)) {
        uVar4 = (*(code *)PTR_strerror_0006f554)();
        uVar4 = (*(code *)PTR_dupprintf_0006f220)(PTR_DAT_0006f074 + -0x2b28,uVar2,uVar4);
        (*(code *)PTR_safefree_0006f084)(uVar2);
        return uVar4;
      }
      (*(code *)PTR_safefree_0006f084)(uVar2);
    }
    if (*(char *)(param_1 + iVar5) == '\0') {
      return 0;
    }
    iVar1 = (*(code *)PTR_strspn_0006f49c)((char *)(param_1 + iVar5),puVar6);
    iVar5 = iVar5 + iVar1;
  } while( true );
}

