
char * gldaarch64linuxb_add_sysroot(char *path)

{
  size_t sVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *pcVar5;
  long lVar6;
  int iVar7;
  char *__dest;
  
  lVar6 = 0;
  sVar1 = strlen(ld_sysroot);
  iVar7 = (int)config.rpath_separator;
  pcVar2 = path;
  while( true ) {
    if (*pcVar2 == '/') {
      lVar6 = lVar6 + sVar1;
    }
    pcVar2 = strchr(pcVar2,iVar7);
    if (pcVar2 == (char *)0x0) break;
    pcVar2 = pcVar2 + 1;
  }
  sVar3 = strlen(path);
  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);
  iVar7 = (int)config.rpath_separator;
  pcVar2 = pcVar4;
  while( true ) {
    if (*path == '/') {
      __dest = pcVar2 + sVar1;
      strcpy(pcVar2,ld_sysroot);
      pcVar5 = strchr(path,iVar7);
    }
    else {
      pcVar5 = strchr(path,iVar7);
      __dest = pcVar2;
    }
    if (pcVar5 == (char *)0x0) break;
    pcVar5 = pcVar5 + (1 - (long)path);
    pcVar2 = __dest + (long)pcVar5;
    strncpy(__dest,path,(size_t)pcVar5);
    path = path + (long)pcVar5;
  }
  strcpy(__dest,path);
  return pcVar4;
}



char * FUN_00149a50(char *param_1)

{
  size_t sVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *pcVar5;
  long lVar6;
  int iVar7;
  char *__dest;
  
  lVar6 = 0;
  sVar1 = strlen(DAT_002a6788);
  iVar7 = (int)DAT_002a6868;
  pcVar2 = param_1;
  while( true ) {
    if (*pcVar2 == '/') {
      lVar6 = lVar6 + sVar1;
    }
    pcVar2 = strchr(pcVar2,iVar7);
    if (pcVar2 == (char *)0x0) break;
    pcVar2 = pcVar2 + 1;
  }
  sVar3 = strlen(param_1);
  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);
  iVar7 = (int)DAT_002a6868;
  pcVar2 = pcVar4;
  while( true ) {
    if (*param_1 == '/') {
      __dest = pcVar2 + sVar1;
      strcpy(pcVar2,DAT_002a6788);
      pcVar5 = strchr(param_1,iVar7);
    }
    else {
      pcVar5 = strchr(param_1,iVar7);
      __dest = pcVar2;
    }
    if (pcVar5 == (char *)0x0) break;
    pcVar5 = pcVar5 + (1 - (long)param_1);
    pcVar2 = __dest + (long)pcVar5;
    strncpy(__dest,param_1,(size_t)pcVar5);
    param_1 = param_1 + (long)pcVar5;
  }
  strcpy(__dest,param_1);
  return pcVar4;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
MOV RBP,RDI
PUSH RBX
XOR EBX,EBX
SUB RSP,0x8
MOV RDI,qword ptr [0x002a6788]
CALL 0x0010d3b0
MOVSX R12D,byte ptr [0x002a6868]
MOV RDI,RBP
MOV R13,RAX
JMP 0x00149a84
LEA RDI,[RAX + 0x1]
CMP byte ptr [RDI],0x2f
LEA RAX,[RBX + R13*0x1]
MOV ESI,R12D
CMOVZ RBX,RAX
CALL 0x0010d420
TEST RAX,RAX
JNZ 0x00149a80
MOV RDI,RBP
CALL 0x0010d3b0
LEA RDI,[RBX + RAX*0x1 + 0x1]
CALL 0x0010de70
MOVSX R14D,byte ptr [0x002a6868]
MOV R15,RAX
MOV R12,RAX
JMP 0x00149aeb
MOV ESI,R14D
MOV RDI,RBP
CALL 0x0010d420
TEST RAX,RAX
JZ 0x00149b13
SUB RAX,RBP
MOV RSI,RBP
MOV RDI,R12
LEA RBX,[RAX + 0x1]
MOV RDX,RBX
ADD R12,RBX
ADD RBP,RBX
CALL 0x0010d130
CMP byte ptr [RBP],0x2f
JNZ 0x00149ac0
MOV RSI,qword ptr [0x002a6788]
MOV RDI,R12
ADD R12,R13
CALL 0x0010d190
MOV ESI,R14D
MOV RDI,RBP
CALL 0x0010d420
TEST RAX,RAX
JNZ 0x00149ad0
MOV RSI,RBP
MOV RDI,R12
CALL 0x0010d190
ADD RSP,0x8
MOV RAX,R15
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "char * FUN_00149a50(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}\n\n" (function_definition "char * FUN_00149a50(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* FUN_00149a50(char *param_1)" * (function_declarator "FUN_00149a50(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(DAT_002a6788);" (assignment_expression "sVar1 = strlen(DAT_002a6788)" identifier = (call_expression "strlen(DAT_002a6788)" identifier (argument_list "(DAT_002a6788)" ( identifier )))) ;) (expression_statement "iVar7 = (int)DAT_002a6868;" (assignment_expression "iVar7 = (int)DAT_002a6868" identifier = (cast_expression "(int)DAT_002a6868" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }" if (parenthesized_expression "(*pcVar2 == '/')" ( (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      lVar6 = lVar6 + sVar1;\n    }" { (expression_statement "lVar6 = lVar6 + sVar1;" (assignment_expression "lVar6 = lVar6 + sVar1" identifier = (binary_expression "lVar6 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = strchr(pcVar2,iVar7);" (assignment_expression "pcVar2 = strchr(pcVar2,iVar7)" identifier = (call_expression "strchr(pcVar2,iVar7)" identifier (argument_list "(pcVar2,iVar7)" ( identifier , identifier )))) ;) (if_statement "if (pcVar2 == (char *)0x0) break;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(lVar6 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(lVar6 + 1 + sVar3)" identifier (argument_list "(lVar6 + 1 + sVar3)" ( (binary_expression "lVar6 + 1 + sVar3" (binary_expression "lVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "iVar7 = (int)DAT_002a6868;" (assignment_expression "iVar7 = (int)DAT_002a6868" identifier = (cast_expression "(int)DAT_002a6868" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }" { (if_statement "if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }" { (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" identifier = (binary_expression "pcVar2 + sVar1" identifier + identifier)) ;) (expression_statement "strcpy(pcVar2,DAT_002a6788);" (call_expression "strcpy(pcVar2,DAT_002a6788)" identifier (argument_list "(pcVar2,DAT_002a6788)" ( identifier , identifier ))) ;) (expression_statement "pcVar5 = strchr(param_1,iVar7);" (assignment_expression "pcVar5 = strchr(param_1,iVar7)" identifier = (call_expression "strchr(param_1,iVar7)" identifier (argument_list "(param_1,iVar7)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" else (compound_statement "{\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" { (expression_statement "pcVar5 = strchr(param_1,iVar7);" (assignment_expression "pcVar5 = strchr(param_1,iVar7)" identifier = (call_expression "strchr(param_1,iVar7)" identifier (argument_list "(param_1,iVar7)" ( identifier , identifier )))) ;) (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" identifier = identifier) ;) }))) (if_statement "if (pcVar5 == (char *)0x0) break;" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + (1 - (long)param_1);" (assignment_expression "pcVar5 = pcVar5 + (1 - (long)param_1)" identifier = (binary_expression "pcVar5 + (1 - (long)param_1)" identifier + (parenthesized_expression "(1 - (long)param_1)" ( (binary_expression "1 - (long)param_1" number_literal - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "pcVar2 = __dest + (long)pcVar5;" (assignment_expression "pcVar2 = __dest + (long)pcVar5" identifier = (binary_expression "__dest + (long)pcVar5" identifier + (cast_expression "(long)pcVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "strncpy(__dest,param_1,(size_t)pcVar5);" (call_expression "strncpy(__dest,param_1,(size_t)pcVar5)" identifier (argument_list "(__dest,param_1,(size_t)pcVar5)" ( identifier , identifier , (cast_expression "(size_t)pcVar5" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "param_1 = param_1 + (long)pcVar5;" (assignment_expression "param_1 = param_1 + (long)pcVar5" identifier = (binary_expression "param_1 + (long)pcVar5" identifier + (cast_expression "(long)pcVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) })) (expression_statement "strcpy(__dest,param_1);" (call_expression "strcpy(__dest,param_1)" identifier (argument_list "(__dest,param_1)" ( identifier , identifier ))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "char * gldaarch64linuxb_add_sysroot(char *path)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(ld_sysroot);\n  iVar7 = (int)config.rpath_separator;\n  pcVar2 = path;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(path);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)config.rpath_separator;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*path == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }\n    else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)path);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (long)pcVar5;\n  }\n  strcpy(__dest,path);\n  return pcVar4;\n}\n\n" (function_definition "char * gldaarch64linuxb_add_sysroot(char *path)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(ld_sysroot);\n  iVar7 = (int)config.rpath_separator;\n  pcVar2 = path;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(path);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)config.rpath_separator;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*path == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }\n    else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)path);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (long)pcVar5;\n  }\n  strcpy(__dest,path);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* gldaarch64linuxb_add_sysroot(char *path)" * (function_declarator "gldaarch64linuxb_add_sysroot(char *path)" identifier (parameter_list "(char *path)" ( (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(ld_sysroot);\n  iVar7 = (int)config.rpath_separator;\n  pcVar2 = path;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(path);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)config.rpath_separator;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*path == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }\n    else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)path);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (long)pcVar5;\n  }\n  strcpy(__dest,path);\n  return pcVar4;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(ld_sysroot);" (assignment_expression "sVar1 = strlen(ld_sysroot)" identifier = (call_expression "strlen(ld_sysroot)" identifier (argument_list "(ld_sysroot)" ( identifier )))) ;) (expression_statement "iVar7 = (int)config.rpath_separator;" (assignment_expression "iVar7 = (int)config.rpath_separator" identifier = (cast_expression "(int)config.rpath_separator" ( (type_descriptor "int" primitive_type) ) (field_expression "config.rpath_separator" identifier . field_identifier))) ;) (expression_statement "pcVar2 = path;" (assignment_expression "pcVar2 = path" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }" if (parenthesized_expression "(*pcVar2 == '/')" ( (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      lVar6 = lVar6 + sVar1;\n    }" { (expression_statement "lVar6 = lVar6 + sVar1;" (assignment_expression "lVar6 = lVar6 + sVar1" identifier = (binary_expression "lVar6 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = strchr(pcVar2,iVar7);" (assignment_expression "pcVar2 = strchr(pcVar2,iVar7)" identifier = (call_expression "strchr(pcVar2,iVar7)" identifier (argument_list "(pcVar2,iVar7)" ( identifier , identifier )))) ;) (if_statement "if (pcVar2 == (char *)0x0) break;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "sVar3 = strlen(path);" (assignment_expression "sVar3 = strlen(path)" identifier = (call_expression "strlen(path)" identifier (argument_list "(path)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(lVar6 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(lVar6 + 1 + sVar3)" identifier (argument_list "(lVar6 + 1 + sVar3)" ( (binary_expression "lVar6 + 1 + sVar3" (binary_expression "lVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "iVar7 = (int)config.rpath_separator;" (assignment_expression "iVar7 = (int)config.rpath_separator" identifier = (cast_expression "(int)config.rpath_separator" ( (type_descriptor "int" primitive_type) ) (field_expression "config.rpath_separator" identifier . field_identifier))) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*path == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }\n    else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)path);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (long)pcVar5;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*path == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }\n    else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)path);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (long)pcVar5;\n  }" { (if_statement "if (*path == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }\n    else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }" if (parenthesized_expression "(*path == '/')" ( (binary_expression "*path == '/'" (pointer_expression "*path" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,ld_sysroot);\n      pcVar5 = strchr(path,iVar7);\n    }" { (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" identifier = (binary_expression "pcVar2 + sVar1" identifier + identifier)) ;) (expression_statement "strcpy(pcVar2,ld_sysroot);" (call_expression "strcpy(pcVar2,ld_sysroot)" identifier (argument_list "(pcVar2,ld_sysroot)" ( identifier , identifier ))) ;) (expression_statement "pcVar5 = strchr(path,iVar7);" (assignment_expression "pcVar5 = strchr(path,iVar7)" identifier = (call_expression "strchr(path,iVar7)" identifier (argument_list "(path,iVar7)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }" else (compound_statement "{\n      pcVar5 = strchr(path,iVar7);\n      __dest = pcVar2;\n    }" { (expression_statement "pcVar5 = strchr(path,iVar7);" (assignment_expression "pcVar5 = strchr(path,iVar7)" identifier = (call_expression "strchr(path,iVar7)" identifier (argument_list "(path,iVar7)" ( identifier , identifier )))) ;) (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" identifier = identifier) ;) }))) (if_statement "if (pcVar5 == (char *)0x0) break;" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + (1 - (long)path);" (assignment_expression "pcVar5 = pcVar5 + (1 - (long)path)" identifier = (binary_expression "pcVar5 + (1 - (long)path)" identifier + (parenthesized_expression "(1 - (long)path)" ( (binary_expression "1 - (long)path" number_literal - (cast_expression "(long)path" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "pcVar2 = __dest + (long)pcVar5;" (assignment_expression "pcVar2 = __dest + (long)pcVar5" identifier = (binary_expression "__dest + (long)pcVar5" identifier + (cast_expression "(long)pcVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "strncpy(__dest,path,(size_t)pcVar5);" (call_expression "strncpy(__dest,path,(size_t)pcVar5)" identifier (argument_list "(__dest,path,(size_t)pcVar5)" ( identifier , identifier , (cast_expression "(size_t)pcVar5" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "path = path + (long)pcVar5;" (assignment_expression "path = path + (long)pcVar5" identifier = (binary_expression "path + (long)pcVar5" identifier + (cast_expression "(long)pcVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) })) (expression_statement "strcpy(__dest,path);" (call_expression "strcpy(__dest,path)" identifier (argument_list "(__dest,path)" ( identifier , identifier ))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "char * FUN_00149a50(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}\n\n" (function_definition "char * FUN_00149a50(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* FUN_00149a50(char *param_1)" * (function_declarator "FUN_00149a50(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(DAT_002a6788);" (assignment_expression "sVar1 = strlen(DAT_002a6788)" identifier = (call_expression "strlen(DAT_002a6788)" identifier (argument_list "(DAT_002a6788)" ( identifier )))) ;) (expression_statement "iVar7 = (int)DAT_002a6868;" (assignment_expression "iVar7 = (int)DAT_002a6868" identifier = (cast_expression "(int)DAT_002a6868" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }" if (parenthesized_expression "(*pcVar2 == '/')" ( (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      lVar6 = lVar6 + sVar1;\n    }" { (expression_statement "lVar6 = lVar6 + sVar1;" (assignment_expression "lVar6 = lVar6 + sVar1" identifier = (binary_expression "lVar6 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = strchr(pcVar2,iVar7);" (assignment_expression "pcVar2 = strchr(pcVar2,iVar7)" identifier = (call_expression "strchr(pcVar2,iVar7)" identifier (argument_list "(pcVar2,iVar7)" ( identifier , identifier )))) ;) (if_statement "if (pcVar2 == (char *)0x0) break;" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" identifier = (binary_expression "pcVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" identifier = (call_expression "strlen(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(lVar6 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(lVar6 + 1 + sVar3)" identifier (argument_list "(lVar6 + 1 + sVar3)" ( (binary_expression "lVar6 + 1 + sVar3" (binary_expression "lVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "iVar7 = (int)DAT_002a6868;" (assignment_expression "iVar7 = (int)DAT_002a6868" identifier = (cast_expression "(int)DAT_002a6868" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }" { (if_statement "if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }" { (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" identifier = (binary_expression "pcVar2 + sVar1" identifier + identifier)) ;) (expression_statement "strcpy(pcVar2,DAT_002a6788);" (call_expression "strcpy(pcVar2,DAT_002a6788)" identifier (argument_list "(pcVar2,DAT_002a6788)" ( identifier , identifier ))) ;) (expression_statement "pcVar5 = strchr(param_1,iVar7);" (assignment_expression "pcVar5 = strchr(param_1,iVar7)" identifier = (call_expression "strchr(param_1,iVar7)" identifier (argument_list "(param_1,iVar7)" ( identifier , identifier )))) ;) }) (else_clause "else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" else (compound_statement "{\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" { (expression_statement "pcVar5 = strchr(param_1,iVar7);" (assignment_expression "pcVar5 = strchr(param_1,iVar7)" identifier = (call_expression "strchr(param_1,iVar7)" identifier (argument_list "(param_1,iVar7)" ( identifier , identifier )))) ;) (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" identifier = identifier) ;) }))) (if_statement "if (pcVar5 == (char *)0x0) break;" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "pcVar5 = pcVar5 + (1 - (long)param_1);" (assignment_expression "pcVar5 = pcVar5 + (1 - (long)param_1)" identifier = (binary_expression "pcVar5 + (1 - (long)param_1)" identifier + (parenthesized_expression "(1 - (long)param_1)" ( (binary_expression "1 - (long)param_1" number_literal - (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))) ;) (expression_statement "pcVar2 = __dest + (long)pcVar5;" (assignment_expression "pcVar2 = __dest + (long)pcVar5" identifier = (binary_expression "__dest + (long)pcVar5" identifier + (cast_expression "(long)pcVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "strncpy(__dest,param_1,(size_t)pcVar5);" (call_expression "strncpy(__dest,param_1,(size_t)pcVar5)" identifier (argument_list "(__dest,param_1,(size_t)pcVar5)" ( identifier , identifier , (cast_expression "(size_t)pcVar5" ( (type_descriptor "size_t" primitive_type) ) identifier) ))) ;) (expression_statement "param_1 = param_1 + (long)pcVar5;" (assignment_expression "param_1 = param_1 + (long)pcVar5" identifier = (binary_expression "param_1 + (long)pcVar5" identifier + (cast_expression "(long)pcVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) })) (expression_statement "strcpy(__dest,param_1);" (call_expression "strcpy(__dest,param_1)" identifier (argument_list "(__dest,param_1)" ( identifier , identifier ))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "char * FUN_00149a50(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" (primitive_type "char") (pointer_declarator "* FUN_00149a50(char *param_1)" (* "*") (function_declarator "FUN_00149a50(char *param_1)" (identifier "FUN_00149a50") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  long lVar6;\n  int iVar7;\n  char *__dest;\n  \n  lVar6 = 0;\n  sVar1 = strlen(DAT_002a6788);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);\n  iVar7 = (int)DAT_002a6868;\n  pcVar2 = pcVar4;\n  while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar1 = strlen(DAT_002a6788);" (assignment_expression "sVar1 = strlen(DAT_002a6788)" (identifier "sVar1") (= "=") (call_expression "strlen(DAT_002a6788)" (identifier "strlen") (argument_list "(DAT_002a6788)" (( "(") (identifier "DAT_002a6788") () ")")))) (; ";")) (expression_statement "iVar7 = (int)DAT_002a6868;" (assignment_expression "iVar7 = (int)DAT_002a6868" (identifier "iVar7") (= "=") (cast_expression "(int)DAT_002a6868" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_002a6868"))) (; ";")) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" (identifier "pcVar2") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,iVar7);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" ({ "{") (if_statement "if (*pcVar2 == '/') {\n      lVar6 = lVar6 + sVar1;\n    }" (if "if") (parenthesized_expression "(*pcVar2 == '/')" (( "(") (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      lVar6 = lVar6 + sVar1;\n    }" ({ "{") (expression_statement "lVar6 = lVar6 + sVar1;" (assignment_expression "lVar6 = lVar6 + sVar1" (identifier "lVar6") (= "=") (binary_expression "lVar6 + sVar1" (identifier "lVar6") (+ "+") (identifier "sVar1"))) (; ";")) (} "}"))) (expression_statement "pcVar2 = strchr(pcVar2,iVar7);" (assignment_expression "pcVar2 = strchr(pcVar2,iVar7)" (identifier "pcVar2") (= "=") (call_expression "strchr(pcVar2,iVar7)" (identifier "strchr") (argument_list "(pcVar2,iVar7)" (( "(") (identifier "pcVar2") (, ",") (identifier "iVar7") () ")")))) (; ";")) (if_statement "if (pcVar2 == (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar2 == (char *)0x0)" (( "(") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar2 = pcVar2 + 1;" (assignment_expression "pcVar2 = pcVar2 + 1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + 1" (identifier "pcVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "sVar3 = strlen(param_1);" (assignment_expression "sVar3 = strlen(param_1)" (identifier "sVar3") (= "=") (call_expression "strlen(param_1)" (identifier "strlen") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(lVar6 + 1 + sVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(lVar6 + 1 + sVar3)" (identifier "xmalloc") (argument_list "(lVar6 + 1 + sVar3)" (( "(") (binary_expression "lVar6 + 1 + sVar3" (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar3")) () ")"))))) (; ";")) (expression_statement "iVar7 = (int)DAT_002a6868;" (assignment_expression "iVar7 = (int)DAT_002a6868" (identifier "iVar7") (= "=") (cast_expression "(int)DAT_002a6868" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_002a6868"))) (; ";")) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" (identifier "pcVar2") (= "=") (identifier "pcVar4")) (; ";")) (while_statement "while( true ) {\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (long)param_1);\n    pcVar2 = __dest + (long)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (long)pcVar5;\n  }" ({ "{") (if_statement "if (*param_1 == '/') {\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }\n    else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" (if "if") (parenthesized_expression "(*param_1 == '/')" (( "(") (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      __dest = pcVar2 + sVar1;\n      strcpy(pcVar2,DAT_002a6788);\n      pcVar5 = strchr(param_1,iVar7);\n    }" ({ "{") (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" (identifier "__dest") (= "=") (binary_expression "pcVar2 + sVar1" (identifier "pcVar2") (+ "+") (identifier "sVar1"))) (; ";")) (expression_statement "strcpy(pcVar2,DAT_002a6788);" (call_expression "strcpy(pcVar2,DAT_002a6788)" (identifier "strcpy") (argument_list "(pcVar2,DAT_002a6788)" (( "(") (identifier "pcVar2") (, ",") (identifier "DAT_002a6788") () ")"))) (; ";")) (expression_statement "pcVar5 = strchr(param_1,iVar7);" (assignment_expression "pcVar5 = strchr(param_1,iVar7)" (identifier "pcVar5") (= "=") (call_expression "strchr(param_1,iVar7)" (identifier "strchr") (argument_list "(param_1,iVar7)" (( "(") (identifier "param_1") (, ",") (identifier "iVar7") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" (else "else") (compound_statement "{\n      pcVar5 = strchr(param_1,iVar7);\n      __dest = pcVar2;\n    }" ({ "{") (expression_statement "pcVar5 = strchr(param_1,iVar7);" (assignment_expression "pcVar5 = strchr(param_1,iVar7)" (identifier "pcVar5") (= "=") (call_expression "strchr(param_1,iVar7)" (identifier "strchr") (argument_list "(param_1,iVar7)" (( "(") (identifier "param_1") (, ",") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" (identifier "__dest") (= "=") (identifier "pcVar2")) (; ";")) (} "}")))) (if_statement "if (pcVar5 == (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar5 = pcVar5 + (1 - (long)param_1);" (assignment_expression "pcVar5 = pcVar5 + (1 - (long)param_1)" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + (1 - (long)param_1)" (identifier "pcVar5") (+ "+") (parenthesized_expression "(1 - (long)param_1)" (( "(") (binary_expression "1 - (long)param_1" (number_literal "1") (- "-") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "pcVar2 = __dest + (long)pcVar5;" (assignment_expression "pcVar2 = __dest + (long)pcVar5" (identifier "pcVar2") (= "=") (binary_expression "__dest + (long)pcVar5" (identifier "__dest") (+ "+") (cast_expression "(long)pcVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar5")))) (; ";")) (expression_statement "strncpy(__dest,param_1,(size_t)pcVar5);" (call_expression "strncpy(__dest,param_1,(size_t)pcVar5)" (identifier "strncpy") (argument_list "(__dest,param_1,(size_t)pcVar5)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") (, ",") (cast_expression "(size_t)pcVar5" (( "(") (type_descriptor "size_t" (primitive_type "size_t")) () ")") (identifier "pcVar5")) () ")"))) (; ";")) (expression_statement "param_1 = param_1 + (long)pcVar5;" (assignment_expression "param_1 = param_1 + (long)pcVar5" (identifier "param_1") (= "=") (binary_expression "param_1 + (long)pcVar5" (identifier "param_1") (+ "+") (cast_expression "(long)pcVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar5")))) (; ";")) (} "}"))) (expression_statement "strcpy(__dest,param_1);" (call_expression "strcpy(__dest,param_1)" (identifier "strcpy") (argument_list "(__dest,param_1)" (( "(") (identifier "__dest") (, ",") (identifier "param_1") () ")"))) (; ";")) (return_statement "return pcVar4;" (return "return") (identifier "pcVar4") (; ";")) (} "}")))

char * function_1(char *var_12)

{
  size_t var_3;
  char *var_5;
  size_t var_7;
  char *pcVar4;
  char *var_9;
  long var_2;
  int iVar7;
  char *var_10;
  
  var_2 = 0;
  var_3 = var_1(ld_sysroot);
  iVar7 = (int)config.rpath_separator;
  var_5 = var_12;
  while( true ) {
    if (*var_5 == '/') {
      var_2 = var_2 + var_3;
    }
    var_5 = var_4(var_5,iVar7);
    if (var_5 == (char *)0x0) break;
    var_5 = var_5 + 1;
  }
  var_7 = var_1(var_12);
  pcVar4 = (char *)var_6(var_2 + 1 + var_7);
  iVar7 = (int)config.rpath_separator;
  var_5 = pcVar4;
  while( true ) {
    if (*var_12 == '/') {
      var_10 = var_5 + var_3;
      var_8(var_5,ld_sysroot);
      var_9 = var_4(var_12,iVar7);
    }
    else {
      var_9 = var_4(var_12,iVar7);
      var_10 = var_5;
    }
    if (var_9 == (char *)0x0) break;
    var_9 = var_9 + (1 - (long)var_12);
    var_5 = var_10 + (long)var_9;
    var_11(var_10,var_12,(size_t)var_9);
    var_12 = var_12 + (long)var_9;
  }
  var_8(var_10,var_12);
  return pcVar4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator 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: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (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: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (identifier)))))

char * MASKED(char *param_1)

{
  size_t sVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *pcVar5;
  long lVar6;
  int iVar7;
  char *__dest;
  
  lVar6 = 0;
  sVar1 = strlen(DAT_002a6788);
  iVar7 = (int)DAT_002a6868;
  pcVar2 = param_1;
  while( true ) {
    if (*pcVar2 == '/') {
      lVar6 = lVar6 + sVar1;
    }
    pcVar2 = strchr(pcVar2,iVar7);
    if (pcVar2 == (char *)0x0) break;
    pcVar2 = pcVar2 + 1;
  }
  sVar3 = strlen(param_1);
  pcVar4 = (char *)xmalloc(lVar6 + 1 + sVar3);
  iVar7 = (int)DAT_002a6868;
  pcVar2 = pcVar4;
  while( true ) {
    if (*param_1 == '/') {
      __dest = pcVar2 + sVar1;
      strcpy(pcVar2,DAT_002a6788);
      pcVar5 = strchr(param_1,iVar7);
    }
    else {
      pcVar5 = strchr(param_1,iVar7);
      __dest = pcVar2;
    }
    if (pcVar5 == (char *)0x0) break;
    pcVar5 = pcVar5 + (1 - (long)param_1);
    pcVar2 = __dest + (long)pcVar5;
    strncpy(__dest,param_1,(size_t)pcVar5);
    param_1 = param_1 + (long)pcVar5;
  }
  strcpy(__dest,param_1);
  return pcVar4;
}

