
char * gldelf32btsmip_add_sysroot(char *path)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  char *pcVar7;
  int iVar8;
  
  puVar3 = PTR_ld_sysroot_001db988;
  puVar2 = PTR_config_001db90c;
  iVar8 = 0;
  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);
  cVar1 = puVar2[0x48];
  pcVar7 = path;
  while( true ) {
    if (*pcVar7 == '/') {
      iVar8 = iVar8 + iVar4;
    }
    iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);
    if (iVar5 == 0) break;
    pcVar7 = (char *)(iVar5 + 1);
  }
  iVar4 = (*(code *)PTR_strlen_001dbf90)(path);
  pcVar6 = (char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1);
  cVar1 = puVar2[0x48];
  pcVar7 = pcVar6;
  while( true ) {
    if (*path == '/') {
      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);
      pcVar7 = (char *)FUN_00043084();
      return pcVar7;
    }
    iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);
    if (iVar4 == 0) break;
    iVar4 = (iVar4 - (int)path) + 1;
    (*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);
    pcVar7 = pcVar7 + iVar4;
    path = path + iVar4;
  }
  (*(code *)PTR_strcpy_001dc024)(pcVar7,path);
  return pcVar6;
}



int FUN_00042fb4(char *param_1)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  char *pcVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  puVar3 = PTR_ld_sysroot_001db988;
  puVar2 = PTR_config_001db90c;
  iVar7 = 0;
  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);
  cVar1 = puVar2[0x48];
  pcVar5 = param_1;
  while( true ) {
    if (*pcVar5 == '/') {
      iVar7 = iVar7 + iVar4;
    }
    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);
    if (iVar6 == 0) break;
    pcVar5 = (char *)(iVar6 + 1);
  }
  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);
  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);
  cVar1 = puVar2[0x48];
  iVar7 = iVar6;
  while( true ) {
    iVar9 = iVar7;
    if (*param_1 == '/') {
      iVar9 = iVar7 + iVar4;
      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);
    }
    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);
    if (iVar7 == 0) break;
    iVar8 = (iVar7 - (int)param_1) + 1;
    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);
    iVar7 = iVar9 + iVar8;
    param_1 = param_1 + iVar8;
  }
  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);
  return iVar6;
}


lui gp,0x1a
addiu gp,gp,0x91c
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7940(gp)
sw s5,0x30(sp)
sw s3,0x28(sp)
sw s0,0x1c(sp)
or s0,a0,zero
lw s5,-0x7f48(gp)
lw s3,-0x7fc4(gp)
sw gp,0x10(sp)
sw s6,0x34(sp)
sw s4,0x2c(sp)
sw s2,0x24(sp)
li s2,0x2f
sw s1,0x20(sp)
or s1,zero,zero
sw ra,0x3c(sp)
sw s7,0x38(sp)
jalr t9
_lw a0,0x0(s5)
or s4,v0,zero
lw gp,0x10(sp)
lb s6,0x48(s3)
b 0x00043024
_or v0,s0,zero
addiu v0,v0,0x1
or a0,v0,zero
lb v0,0x0(v0)
lw t9,-0x7934(gp)
bne v0,s2,0x0004303c
_or a1,s6,zero
addu s1,s1,s4
jalr t9
_nop
bne v0,zero,0x00043020
_lw gp,0x10(sp)
lw t9,-0x7940(gp)
or a0,s0,zero
jalr t9
_li s6,0x2f
lw gp,0x10(sp)
addu v0,v0,s1
lw t9,-0x7894(gp)
jalr t9
_addiu a0,v0,0x1
lw gp,0x10(sp)
or s7,v0,zero
lb s3,0x48(s3)
b 0x000430c4
_or s2,v0,zero
lw t9,-0x7934(gp)
or a1,s3,zero
jalr t9
_or a0,s0,zero
or a1,s0,zero
lw gp,0x10(sp)
subu s1,v0,s0
beq v0,zero,0x000430e8
_lw t9,-0x7994(gp)
addiu s1,s1,0x1
or a0,s2,zero
jalr t9
_or a2,s1,zero
addu s2,s2,s1
lw gp,0x10(sp)
addu s0,s0,s1
lb v0,0x0(s0)
bne v0,s6,0x00043084
_or a0,s2,zero
lw t9,-0x78ac(gp)
lw a1,0x0(s5)
jalr t9
_addu s2,s2,s4
b 0x00043084
_lw gp,0x10(sp)
lw t9,-0x78ac(gp)
jalr t9
_or a0,s2,zero
or v0,s7,zero
lw ra,0x3c(sp)
lw s7,0x38(sp)
lw s6,0x34(sp)
lw s5,0x30(sp)
lw s4,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x40
(translation_unit "int FUN_00042fb4(char *param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}\n\n" (function_definition "int FUN_00042fb4(char *param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}" primitive_type (function_declarator "FUN_00042fb4(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_ld_sysroot_001db988;" (assignment_expression "puVar3 = PTR_ld_sysroot_001db988" identifier = identifier) ;) (expression_statement "puVar2 = PTR_config_001db90c;" (assignment_expression "puVar2 = PTR_config_001db90c" identifier = identifier) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" identifier = (call_expression "(*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" ( (pointer_expression "*(code *)PTR_strlen_001dbf90" * (cast_expression "(code *)PTR_strlen_001dbf90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_ld_sysroot_001db988)" ( (pointer_expression "*(undefined4 *)PTR_ld_sysroot_001db988" * (cast_expression "(undefined4 *)PTR_ld_sysroot_001db988" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" identifier = (subscript_expression "puVar2[0x48]" identifier [ number_literal ])) ;) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }" { (if_statement "if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }" if (parenthesized_expression "(*pcVar5 == '/')" ( (binary_expression "*pcVar5 == '/'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar7 = iVar7 + iVar4;\n    }" { (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) })) (expression_statement "iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);" (assignment_expression "iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1)" identifier = (call_expression "(*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" ( (pointer_expression "*(code *)PTR_strchr_001dbf9c" * (cast_expression "(code *)PTR_strchr_001dbf9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = (char *)(iVar6 + 1);" (assignment_expression "pcVar5 = (char *)(iVar6 + 1)" identifier = (cast_expression "(char *)(iVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) })) (expression_statement "iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_001dbf90)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" ( (pointer_expression "*(code *)PTR_strlen_001dbf90" * (cast_expression "(code *)PTR_strlen_001dbf90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);" (assignment_expression "iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1)" identifier = (call_expression "(*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001dc03c)" ( (pointer_expression "*(code *)PTR_xmalloc_001dc03c" * (cast_expression "(code *)PTR_xmalloc_001dc03c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + iVar7 + 1)" ( (binary_expression "iVar6 + iVar7 + 1" (binary_expression "iVar6 + iVar7" identifier + identifier) + number_literal) )))) ;) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" identifier = (subscript_expression "puVar2[0x48]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }" { (expression_statement "iVar9 = iVar7;" (assignment_expression "iVar9 = iVar7" identifier = identifier) ;) (if_statement "if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }" { (expression_statement "iVar9 = iVar7 + iVar4;" (assignment_expression "iVar9 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" ( (pointer_expression "*(code *)PTR_strcpy_001dc024" * (cast_expression "(code *)PTR_strcpy_001dc024" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,*(undefined4 *)puVar3)" ( identifier , (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (expression_statement "iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1)" identifier = (call_expression "(*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" ( (pointer_expression "*(code *)PTR_strchr_001dbf9c" * (cast_expression "(code *)PTR_strchr_001dbf9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = (iVar7 - (int)param_1) + 1;" (assignment_expression "iVar8 = (iVar7 - (int)param_1) + 1" identifier = (binary_expression "(iVar7 - (int)param_1) + 1" (parenthesized_expression "(iVar7 - (int)param_1)" ( (binary_expression "iVar7 - (int)param_1" identifier - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal)) ;) (expression_statement "(*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);" (call_expression "(*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8)" (parenthesized_expression "(*(code *)PTR_strncpy_001dbf3c)" ( (pointer_expression "*(code *)PTR_strncpy_001dbf3c" * (cast_expression "(code *)PTR_strncpy_001dbf3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9,param_1,iVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar7 = iVar9 + iVar8;" (assignment_expression "iVar7 = iVar9 + iVar8" identifier = (binary_expression "iVar9 + iVar8" identifier + identifier)) ;) (expression_statement "param_1 = param_1 + iVar8;" (assignment_expression "param_1 = param_1 + iVar8" identifier = (binary_expression "param_1 + iVar8" identifier + identifier)) ;) })) (expression_statement "(*(code *)PTR_strcpy_001dc024)(iVar9,param_1);" (call_expression "(*(code *)PTR_strcpy_001dc024)(iVar9,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" ( (pointer_expression "*(code *)PTR_strcpy_001dc024" * (cast_expression "(code *)PTR_strcpy_001dc024" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9,param_1)" ( identifier , identifier ))) ;) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "char * gldelf32btsmip_add_sysroot(char *path)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar8 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar7 = path;\n  while( true ) {\n    if (*pcVar7 == '/') {\n      iVar8 = iVar8 + iVar4;\n    }\n    iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);\n    if (iVar5 == 0) break;\n    pcVar7 = (char *)(iVar5 + 1);\n  }\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(path);\n  pcVar6 = (char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1);\n  cVar1 = puVar2[0x48];\n  pcVar7 = pcVar6;\n  while( true ) {\n    if (*path == '/') {\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }\n    iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);\n    if (iVar4 == 0) break;\n    iVar4 = (iVar4 - (int)path) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);\n    pcVar7 = pcVar7 + iVar4;\n    path = path + iVar4;\n  }\n  (*(code *)PTR_strcpy_001dc024)(pcVar7,path);\n  return pcVar6;\n}\n\n" (function_definition "char * gldelf32btsmip_add_sysroot(char *path)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar8 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar7 = path;\n  while( true ) {\n    if (*pcVar7 == '/') {\n      iVar8 = iVar8 + iVar4;\n    }\n    iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);\n    if (iVar5 == 0) break;\n    pcVar7 = (char *)(iVar5 + 1);\n  }\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(path);\n  pcVar6 = (char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1);\n  cVar1 = puVar2[0x48];\n  pcVar7 = pcVar6;\n  while( true ) {\n    if (*path == '/') {\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }\n    iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);\n    if (iVar4 == 0) break;\n    iVar4 = (iVar4 - (int)path) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);\n    pcVar7 = pcVar7 + iVar4;\n    path = path + iVar4;\n  }\n  (*(code *)PTR_strcpy_001dc024)(pcVar7,path);\n  return pcVar6;\n}" primitive_type (pointer_declarator "* gldelf32btsmip_add_sysroot(char *path)" * (function_declarator "gldelf32btsmip_add_sysroot(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  int iVar8;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar8 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar7 = path;\n  while( true ) {\n    if (*pcVar7 == '/') {\n      iVar8 = iVar8 + iVar4;\n    }\n    iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);\n    if (iVar5 == 0) break;\n    pcVar7 = (char *)(iVar5 + 1);\n  }\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(path);\n  pcVar6 = (char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1);\n  cVar1 = puVar2[0x48];\n  pcVar7 = pcVar6;\n  while( true ) {\n    if (*path == '/') {\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }\n    iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);\n    if (iVar4 == 0) break;\n    iVar4 = (iVar4 - (int)path) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);\n    pcVar7 = pcVar7 + iVar4;\n    path = path + iVar4;\n  }\n  (*(code *)PTR_strcpy_001dc024)(pcVar7,path);\n  return pcVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_ld_sysroot_001db988;" (assignment_expression "puVar3 = PTR_ld_sysroot_001db988" identifier = identifier) ;) (expression_statement "puVar2 = PTR_config_001db90c;" (assignment_expression "puVar2 = PTR_config_001db90c" identifier = identifier) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" identifier = (call_expression "(*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" ( (pointer_expression "*(code *)PTR_strlen_001dbf90" * (cast_expression "(code *)PTR_strlen_001dbf90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_ld_sysroot_001db988)" ( (pointer_expression "*(undefined4 *)PTR_ld_sysroot_001db988" * (cast_expression "(undefined4 *)PTR_ld_sysroot_001db988" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" identifier = (subscript_expression "puVar2[0x48]" identifier [ number_literal ])) ;) (expression_statement "pcVar7 = path;" (assignment_expression "pcVar7 = path" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*pcVar7 == '/') {\n      iVar8 = iVar8 + iVar4;\n    }\n    iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);\n    if (iVar5 == 0) break;\n    pcVar7 = (char *)(iVar5 + 1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar7 == '/') {\n      iVar8 = iVar8 + iVar4;\n    }\n    iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);\n    if (iVar5 == 0) break;\n    pcVar7 = (char *)(iVar5 + 1);\n  }" { (if_statement "if (*pcVar7 == '/') {\n      iVar8 = iVar8 + iVar4;\n    }" if (parenthesized_expression "(*pcVar7 == '/')" ( (binary_expression "*pcVar7 == '/'" (pointer_expression "*pcVar7" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar8 = iVar8 + iVar4;\n    }" { (expression_statement "iVar8 = iVar8 + iVar4;" (assignment_expression "iVar8 = iVar8 + iVar4" identifier = (binary_expression "iVar8 + iVar4" identifier + identifier)) ;) })) (expression_statement "iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1);" (assignment_expression "iVar5 = (*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1)" identifier = (call_expression "(*(code *)PTR_strchr_001dbf9c)(pcVar7,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" ( (pointer_expression "*(code *)PTR_strchr_001dbf9c" * (cast_expression "(code *)PTR_strchr_001dbf9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar5 == 0) break;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar7 = (char *)(iVar5 + 1);" (assignment_expression "pcVar7 = (char *)(iVar5 + 1)" identifier = (cast_expression "(char *)(iVar5 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) })) (expression_statement "iVar4 = (*(code *)PTR_strlen_001dbf90)(path);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_001dbf90)(path)" identifier = (call_expression "(*(code *)PTR_strlen_001dbf90)(path)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" ( (pointer_expression "*(code *)PTR_strlen_001dbf90" * (cast_expression "(code *)PTR_strlen_001dbf90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path)" ( identifier )))) ;) (expression_statement "pcVar6 = (char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1);" (assignment_expression "pcVar6 = (char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001dc03c)(iVar4 + iVar8 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001dc03c)" ( (pointer_expression "*(code *)PTR_xmalloc_001dc03c" * (cast_expression "(code *)PTR_xmalloc_001dc03c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4 + iVar8 + 1)" ( (binary_expression "iVar4 + iVar8 + 1" (binary_expression "iVar4 + iVar8" identifier + identifier) + number_literal) ))))) ;) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" identifier = (subscript_expression "puVar2[0x48]" identifier [ number_literal ])) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*path == '/') {\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }\n    iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);\n    if (iVar4 == 0) break;\n    iVar4 = (iVar4 - (int)path) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);\n    pcVar7 = pcVar7 + iVar4;\n    path = path + iVar4;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*path == '/') {\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }\n    iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);\n    if (iVar4 == 0) break;\n    iVar4 = (iVar4 - (int)path) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);\n    pcVar7 = pcVar7 + iVar4;\n    path = path + iVar4;\n  }" { (if_statement "if (*path == '/') {\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }" if (parenthesized_expression "(*path == '/')" ( (binary_expression "*path == '/'" (pointer_expression "*path" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      (*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);\n      pcVar7 = (char *)FUN_00043084();\n      return pcVar7;\n    }" { (expression_statement "(*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_strcpy_001dc024)(pcVar7,*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" ( (pointer_expression "*(code *)PTR_strcpy_001dc024" * (cast_expression "(code *)PTR_strcpy_001dc024" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,*(undefined4 *)puVar3)" ( identifier , (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "pcVar7 = (char *)FUN_00043084();" (assignment_expression "pcVar7 = (char *)FUN_00043084()" identifier = (cast_expression "(char *)FUN_00043084()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00043084()" identifier (argument_list "()" ( ))))) ;) (return_statement "return pcVar7;" return identifier ;) })) (expression_statement "iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1);" (assignment_expression "iVar4 = (*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1)" identifier = (call_expression "(*(code *)PTR_strchr_001dbf9c)(path,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" ( (pointer_expression "*(code *)PTR_strchr_001dbf9c" * (cast_expression "(code *)PTR_strchr_001dbf9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(path,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = (iVar4 - (int)path) + 1;" (assignment_expression "iVar4 = (iVar4 - (int)path) + 1" identifier = (binary_expression "(iVar4 - (int)path) + 1" (parenthesized_expression "(iVar4 - (int)path)" ( (binary_expression "iVar4 - (int)path" identifier - (cast_expression "(int)path" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal)) ;) (expression_statement "(*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4);" (call_expression "(*(code *)PTR_strncpy_001dbf3c)(pcVar7,path,iVar4)" (parenthesized_expression "(*(code *)PTR_strncpy_001dbf3c)" ( (pointer_expression "*(code *)PTR_strncpy_001dbf3c" * (cast_expression "(code *)PTR_strncpy_001dbf3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,path,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "pcVar7 = pcVar7 + iVar4;" (assignment_expression "pcVar7 = pcVar7 + iVar4" identifier = (binary_expression "pcVar7 + iVar4" identifier + identifier)) ;) (expression_statement "path = path + iVar4;" (assignment_expression "path = path + iVar4" identifier = (binary_expression "path + iVar4" identifier + identifier)) ;) })) (expression_statement "(*(code *)PTR_strcpy_001dc024)(pcVar7,path);" (call_expression "(*(code *)PTR_strcpy_001dc024)(pcVar7,path)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" ( (pointer_expression "*(code *)PTR_strcpy_001dc024" * (cast_expression "(code *)PTR_strcpy_001dc024" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,path)" ( identifier , identifier ))) ;) (return_statement "return pcVar6;" return identifier ;) })))
(translation_unit "int FUN_00042fb4(char *param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}\n\n" (function_definition "int FUN_00042fb4(char *param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}" primitive_type (function_declarator "FUN_00042fb4(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_ld_sysroot_001db988;" (assignment_expression "puVar3 = PTR_ld_sysroot_001db988" identifier = identifier) ;) (expression_statement "puVar2 = PTR_config_001db90c;" (assignment_expression "puVar2 = PTR_config_001db90c" identifier = identifier) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" identifier = (call_expression "(*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" ( (pointer_expression "*(code *)PTR_strlen_001dbf90" * (cast_expression "(code *)PTR_strlen_001dbf90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_ld_sysroot_001db988)" ( (pointer_expression "*(undefined4 *)PTR_ld_sysroot_001db988" * (cast_expression "(undefined4 *)PTR_ld_sysroot_001db988" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) ;) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" identifier = (subscript_expression "puVar2[0x48]" identifier [ number_literal ])) ;) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }" { (if_statement "if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }" if (parenthesized_expression "(*pcVar5 == '/')" ( (binary_expression "*pcVar5 == '/'" (pointer_expression "*pcVar5" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar7 = iVar7 + iVar4;\n    }" { (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) })) (expression_statement "iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);" (assignment_expression "iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1)" identifier = (call_expression "(*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" ( (pointer_expression "*(code *)PTR_strchr_001dbf9c" * (cast_expression "(code *)PTR_strchr_001dbf9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar5,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = (char *)(iVar6 + 1);" (assignment_expression "pcVar5 = (char *)(iVar6 + 1)" identifier = (cast_expression "(char *)(iVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) })) (expression_statement "iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_001dbf90)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" ( (pointer_expression "*(code *)PTR_strlen_001dbf90" * (cast_expression "(code *)PTR_strlen_001dbf90" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);" (assignment_expression "iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1)" identifier = (call_expression "(*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001dc03c)" ( (pointer_expression "*(code *)PTR_xmalloc_001dc03c" * (cast_expression "(code *)PTR_xmalloc_001dc03c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + iVar7 + 1)" ( (binary_expression "iVar6 + iVar7 + 1" (binary_expression "iVar6 + iVar7" identifier + identifier) + number_literal) )))) ;) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" identifier = (subscript_expression "puVar2[0x48]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }" { (expression_statement "iVar9 = iVar7;" (assignment_expression "iVar9 = iVar7" identifier = identifier) ;) (if_statement "if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }" { (expression_statement "iVar9 = iVar7 + iVar4;" (assignment_expression "iVar9 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" ( (pointer_expression "*(code *)PTR_strcpy_001dc024" * (cast_expression "(code *)PTR_strcpy_001dc024" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,*(undefined4 *)puVar3)" ( identifier , (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) })) (expression_statement "iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1)" identifier = (call_expression "(*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" ( (pointer_expression "*(code *)PTR_strchr_001dbf9c" * (cast_expression "(code *)PTR_strchr_001dbf9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,(int)cVar1)" ( identifier , (cast_expression "(int)cVar1" ( (type_descriptor "int" primitive_type) ) identifier) )))) ;) (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar8 = (iVar7 - (int)param_1) + 1;" (assignment_expression "iVar8 = (iVar7 - (int)param_1) + 1" identifier = (binary_expression "(iVar7 - (int)param_1) + 1" (parenthesized_expression "(iVar7 - (int)param_1)" ( (binary_expression "iVar7 - (int)param_1" identifier - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal)) ;) (expression_statement "(*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);" (call_expression "(*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8)" (parenthesized_expression "(*(code *)PTR_strncpy_001dbf3c)" ( (pointer_expression "*(code *)PTR_strncpy_001dbf3c" * (cast_expression "(code *)PTR_strncpy_001dbf3c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9,param_1,iVar8)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar7 = iVar9 + iVar8;" (assignment_expression "iVar7 = iVar9 + iVar8" identifier = (binary_expression "iVar9 + iVar8" identifier + identifier)) ;) (expression_statement "param_1 = param_1 + iVar8;" (assignment_expression "param_1 = param_1 + iVar8" identifier = (binary_expression "param_1 + iVar8" identifier + identifier)) ;) })) (expression_statement "(*(code *)PTR_strcpy_001dc024)(iVar9,param_1);" (call_expression "(*(code *)PTR_strcpy_001dc024)(iVar9,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" ( (pointer_expression "*(code *)PTR_strcpy_001dc024" * (cast_expression "(code *)PTR_strcpy_001dc024" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9,param_1)" ( identifier , identifier ))) ;) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression 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 , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + LIT)) ;) (expression_statement (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 = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00042fb4(char *param_1)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}" (primitive_type "int") (function_declarator "FUN_00042fb4(char *param_1)" (identifier "FUN_00042fb4") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  char *pcVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  int iVar9;\n  \n  puVar3 = PTR_ld_sysroot_001db988;\n  puVar2 = PTR_config_001db90c;\n  iVar7 = 0;\n  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);\n  cVar1 = puVar2[0x48];\n  pcVar5 = param_1;\n  while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }\n  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);\n  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);\n  cVar1 = puVar2[0x48];\n  iVar7 = iVar6;\n  while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }\n  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);\n  return iVar6;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (expression_statement "puVar3 = PTR_ld_sysroot_001db988;" (assignment_expression "puVar3 = PTR_ld_sysroot_001db988" (identifier "puVar3") (= "=") (identifier "PTR_ld_sysroot_001db988")) (; ";")) (expression_statement "puVar2 = PTR_config_001db90c;" (assignment_expression "puVar2 = PTR_config_001db90c" (identifier "puVar2") (= "=") (identifier "PTR_config_001db90c")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" (( "(") (pointer_expression "*(code *)PTR_strlen_001dbf90" (* "*") (cast_expression "(code *)PTR_strlen_001dbf90" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_001dbf90"))) () ")")) (argument_list "(*(undefined4 *)PTR_ld_sysroot_001db988)" (( "(") (pointer_expression "*(undefined4 *)PTR_ld_sysroot_001db988" (* "*") (cast_expression "(undefined4 *)PTR_ld_sysroot_001db988" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ld_sysroot_001db988"))) () ")")))) (; ";")) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" (identifier "cVar1") (= "=") (subscript_expression "puVar2[0x48]" (identifier "puVar2") ([ "[") (number_literal "0x48") (] "]"))) (; ";")) (expression_statement "pcVar5 = param_1;" (assignment_expression "pcVar5 = param_1" (identifier "pcVar5") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }\n    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);\n    if (iVar6 == 0) break;\n    pcVar5 = (char *)(iVar6 + 1);\n  }" ({ "{") (if_statement "if (*pcVar5 == '/') {\n      iVar7 = iVar7 + iVar4;\n    }" (if "if") (parenthesized_expression "(*pcVar5 == '/')" (( "(") (binary_expression "*pcVar5 == '/'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      iVar7 = iVar7 + iVar4;\n    }" ({ "{") (expression_statement "iVar7 = iVar7 + iVar4;" (assignment_expression "iVar7 = iVar7 + iVar4" (identifier "iVar7") (= "=") (binary_expression "iVar7 + iVar4" (identifier "iVar7") (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);" (assignment_expression "iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" (( "(") (pointer_expression "*(code *)PTR_strchr_001dbf9c" (* "*") (cast_expression "(code *)PTR_strchr_001dbf9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_001dbf9c"))) () ")")) (argument_list "(pcVar5,(int)cVar1)" (( "(") (identifier "pcVar5") (, ",") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) () ")")))) (; ";")) (if_statement "if (iVar6 == 0) break;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar5 = (char *)(iVar6 + 1);" (assignment_expression "pcVar5 = (char *)(iVar6 + 1)" (identifier "pcVar5") (= "=") (cast_expression "(char *)(iVar6 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_001dbf90)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_001dbf90)" (( "(") (pointer_expression "*(code *)PTR_strlen_001dbf90" (* "*") (cast_expression "(code *)PTR_strlen_001dbf90" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_001dbf90"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);" (assignment_expression "iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1)" (parenthesized_expression "(*(code *)PTR_xmalloc_001dc03c)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001dc03c" (* "*") (cast_expression "(code *)PTR_xmalloc_001dc03c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001dc03c"))) () ")")) (argument_list "(iVar6 + iVar7 + 1)" (( "(") (binary_expression "iVar6 + iVar7 + 1" (binary_expression "iVar6 + iVar7" (identifier "iVar6") (+ "+") (identifier "iVar7")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "cVar1 = puVar2[0x48];" (assignment_expression "cVar1 = puVar2[0x48]" (identifier "cVar1") (= "=") (subscript_expression "puVar2[0x48]" (identifier "puVar2") ([ "[") (number_literal "0x48") (] "]"))) (; ";")) (expression_statement "iVar7 = iVar6;" (assignment_expression "iVar7 = iVar6" (identifier "iVar7") (= "=") (identifier "iVar6")) (; ";")) (while_statement "while( true ) {\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar9 = iVar7;\n    if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }\n    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);\n    if (iVar7 == 0) break;\n    iVar8 = (iVar7 - (int)param_1) + 1;\n    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);\n    iVar7 = iVar9 + iVar8;\n    param_1 = param_1 + iVar8;\n  }" ({ "{") (expression_statement "iVar9 = iVar7;" (assignment_expression "iVar9 = iVar7" (identifier "iVar9") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (*param_1 == '/') {\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }" (if "if") (parenthesized_expression "(*param_1 == '/')" (( "(") (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      iVar9 = iVar7 + iVar4;\n      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);\n    }" ({ "{") (expression_statement "iVar9 = iVar7 + iVar4;" (assignment_expression "iVar9 = iVar7 + iVar4" (identifier "iVar9") (= "=") (binary_expression "iVar7 + iVar4" (identifier "iVar7") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" (( "(") (pointer_expression "*(code *)PTR_strcpy_001dc024" (* "*") (cast_expression "(code *)PTR_strcpy_001dc024" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_001dc024"))) () ")")) (argument_list "(iVar7,*(undefined4 *)puVar3)" (( "(") (identifier "iVar7") (, ",") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);" (assignment_expression "iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1)" (parenthesized_expression "(*(code *)PTR_strchr_001dbf9c)" (( "(") (pointer_expression "*(code *)PTR_strchr_001dbf9c" (* "*") (cast_expression "(code *)PTR_strchr_001dbf9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_001dbf9c"))) () ")")) (argument_list "(param_1,(int)cVar1)" (( "(") (identifier "param_1") (, ",") (cast_expression "(int)cVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar1")) () ")")))) (; ";")) (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar8 = (iVar7 - (int)param_1) + 1;" (assignment_expression "iVar8 = (iVar7 - (int)param_1) + 1" (identifier "iVar8") (= "=") (binary_expression "(iVar7 - (int)param_1) + 1" (parenthesized_expression "(iVar7 - (int)param_1)" (( "(") (binary_expression "iVar7 - (int)param_1" (identifier "iVar7") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);" (call_expression "(*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8)" (parenthesized_expression "(*(code *)PTR_strncpy_001dbf3c)" (( "(") (pointer_expression "*(code *)PTR_strncpy_001dbf3c" (* "*") (cast_expression "(code *)PTR_strncpy_001dbf3c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_001dbf3c"))) () ")")) (argument_list "(iVar9,param_1,iVar8)" (( "(") (identifier "iVar9") (, ",") (identifier "param_1") (, ",") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "iVar7 = iVar9 + iVar8;" (assignment_expression "iVar7 = iVar9 + iVar8" (identifier "iVar7") (= "=") (binary_expression "iVar9 + iVar8" (identifier "iVar9") (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "param_1 = param_1 + iVar8;" (assignment_expression "param_1 = param_1 + iVar8" (identifier "param_1") (= "=") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_strcpy_001dc024)(iVar9,param_1);" (call_expression "(*(code *)PTR_strcpy_001dc024)(iVar9,param_1)" (parenthesized_expression "(*(code *)PTR_strcpy_001dc024)" (( "(") (pointer_expression "*(code *)PTR_strcpy_001dc024" (* "*") (cast_expression "(code *)PTR_strcpy_001dc024" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_001dc024"))) () ")")) (argument_list "(iVar9,param_1)" (( "(") (identifier "iVar9") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (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) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (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: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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 (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (number_literal)))) (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) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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 (identifier) (identifier)))) (return_statement (identifier)))))

int MASKED(char *param_1)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  char *pcVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  int iVar9;
  
  puVar3 = PTR_ld_sysroot_001db988;
  puVar2 = PTR_config_001db90c;
  iVar7 = 0;
  iVar4 = (*(code *)PTR_strlen_001dbf90)(*(undefined4 *)PTR_ld_sysroot_001db988);
  cVar1 = puVar2[0x48];
  pcVar5 = param_1;
  while( true ) {
    if (*pcVar5 == '/') {
      iVar7 = iVar7 + iVar4;
    }
    iVar6 = (*(code *)PTR_strchr_001dbf9c)(pcVar5,(int)cVar1);
    if (iVar6 == 0) break;
    pcVar5 = (char *)(iVar6 + 1);
  }
  iVar6 = (*(code *)PTR_strlen_001dbf90)(param_1);
  iVar6 = (*(code *)PTR_xmalloc_001dc03c)(iVar6 + iVar7 + 1);
  cVar1 = puVar2[0x48];
  iVar7 = iVar6;
  while( true ) {
    iVar9 = iVar7;
    if (*param_1 == '/') {
      iVar9 = iVar7 + iVar4;
      (*(code *)PTR_strcpy_001dc024)(iVar7,*(undefined4 *)puVar3);
    }
    iVar7 = (*(code *)PTR_strchr_001dbf9c)(param_1,(int)cVar1);
    if (iVar7 == 0) break;
    iVar8 = (iVar7 - (int)param_1) + 1;
    (*(code *)PTR_strncpy_001dbf3c)(iVar9,param_1,iVar8);
    iVar7 = iVar9 + iVar8;
    param_1 = param_1 + iVar8;
  }
  (*(code *)PTR_strcpy_001dc024)(iVar9,param_1);
  return iVar6;
}

