
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 gldelf_i386_add_sysroot(char *path)

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



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 FUN_000372d0(char *param_1)

{
  size_t sVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *pcVar5;
  int iVar6;
  int __c;
  char *__dest;
  
  iVar6 = 0;
  sVar1 = strlen(DAT_000bbe88);
  __c = (int)DAT_000bbf48;
  pcVar2 = param_1;
  while( true ) {
    if (*pcVar2 == '/') {
      iVar6 = iVar6 + sVar1;
    }
    pcVar2 = strchr(pcVar2,__c);
    if (pcVar2 == (char *)0x0) break;
    pcVar2 = pcVar2 + 1;
  }
  sVar3 = strlen(param_1);
  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);
  iVar6 = (int)DAT_000bbf48;
  pcVar2 = pcVar4;
  while( true ) {
    __dest = pcVar2;
    if (*param_1 == '/') {
      strcpy(pcVar2,DAT_000bbe88);
      __dest = pcVar2 + sVar1;
    }
    pcVar5 = strchr(param_1,iVar6);
    if (pcVar5 == (char *)0x0) break;
    pcVar5 = pcVar5 + (1 - (int)param_1);
    pcVar2 = __dest + (int)pcVar5;
    strncpy(__dest,param_1,(size_t)pcVar5);
    param_1 = param_1 + (int)pcVar5;
  }
  strcpy(__dest,param_1);
  return pcVar4;
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00015a10
ADD EBX,0x83d23
SUB ESP,0x28
LEA EAX,[EBX + 0xe88]
MOV dword ptr [ESP + 0x14],EAX
PUSH dword ptr [EAX]
CALL 0x000146f0
LEA EDX,[EBX + 0xf00]
ADD ESP,0x10
MOV ECX,EAX
MOV dword ptr [ESP + 0x4],EAX
MOV EAX,ESI
MOV dword ptr [ESP + 0xc],ESI
MOVSX EDI,byte ptr [EDX + 0x48]
MOV ESI,ECX
MOV dword ptr [ESP],EDX
JMP 0x00037323
ADD EAX,0x1
CMP byte ptr [EAX],0x2f
LEA ECX,[EBP + ESI*0x1]
CMOVZ EBP,ECX
SUB ESP,0x8
PUSH EDI
PUSH EAX
CALL 0x000146c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00037320
MOV ESI,dword ptr [ESP + 0xc]
SUB ESP,0xc
PUSH ESI
CALL 0x000146f0
LEA EAX,[EBP + EAX*0x1 + 0x1]
MOV EBP,ESI
MOV dword ptr [ESP],EAX
CALL 0x00014c58
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x1c],EAX
MOV EDI,EAX
MOVSX EDX,byte ptr [EDX + 0x48]
MOV dword ptr [ESP + 0x10],EDX
ADD ESP,0x10
JMP 0x0003739b
SUB ESP,0x8
PUSH dword ptr [ESP + 0x8]
PUSH EBP
CALL 0x000146c0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000373c0
SUB EAX,EBP
SUB ESP,0x4
LEA ESI,[EAX + 0x1]
PUSH ESI
PUSH EBP
ADD EBP,ESI
PUSH EDI
ADD EDI,ESI
CALL 0x00014810
ADD ESP,0x10
CMP byte ptr [EBP],0x2f
JNZ 0x00037370
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
PUSH dword ptr [EAX]
PUSH EDI
CALL 0x000144c0
ADD EDI,dword ptr [ESP + 0x14]
ADD ESP,0x10
JMP 0x00037370
SUB ESP,0x8
PUSH EBP
PUSH EDI
CALL 0x000144c0
MOV EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_000372d0(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}\n\n" comment (function_definition "char * __regparm3 FUN_000372d0(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000372d0(char *param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000372d0(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  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)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 "int iVar6;" primitive_type identifier ;) (declaration "int __c;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(DAT_000bbe88);" (assignment_expression "sVar1 = strlen(DAT_000bbe88)" identifier = (call_expression "strlen(DAT_000bbe88)" identifier (argument_list "(DAT_000bbe88)" ( identifier )))) ;) (expression_statement "__c = (int)DAT_000bbf48;" (assignment_expression "__c = (int)DAT_000bbf48" identifier = (cast_expression "(int)DAT_000bbf48" ( (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      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }" if (parenthesized_expression "(*pcVar2 == '/')" ( (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar6 = iVar6 + sVar1;\n    }" { (expression_statement "iVar6 = iVar6 + sVar1;" (assignment_expression "iVar6 = iVar6 + sVar1" identifier = (binary_expression "iVar6 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = strchr(pcVar2,__c);" (assignment_expression "pcVar2 = strchr(pcVar2,__c)" identifier = (call_expression "strchr(pcVar2,__c)" identifier (argument_list "(pcVar2,__c)" ( 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(iVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(iVar6 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar6 + 1 + sVar3)" identifier (argument_list "(iVar6 + 1 + sVar3)" ( (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "iVar6 = (int)DAT_000bbf48;" (assignment_expression "iVar6 = (int)DAT_000bbf48" identifier = (cast_expression "(int)DAT_000bbf48" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }" { (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" identifier = identifier) ;) (if_statement "if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }" { (expression_statement "strcpy(pcVar2,DAT_000bbe88);" (call_expression "strcpy(pcVar2,DAT_000bbe88)" identifier (argument_list "(pcVar2,DAT_000bbe88)" ( identifier , identifier ))) ;) (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" identifier = (binary_expression "pcVar2 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar5 = strchr(param_1,iVar6);" (assignment_expression "pcVar5 = strchr(param_1,iVar6)" identifier = (call_expression "strchr(param_1,iVar6)" identifier (argument_list "(param_1,iVar6)" ( 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 - (int)param_1);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)param_1)" identifier = (binary_expression "pcVar5 + (1 - (int)param_1)" identifier + (parenthesized_expression "(1 - (int)param_1)" ( (binary_expression "1 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar2 = __dest + (int)pcVar5;" (assignment_expression "pcVar2 = __dest + (int)pcVar5" identifier = (binary_expression "__dest + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) 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 + (int)pcVar5;" (assignment_expression "param_1 = param_1 + (int)pcVar5" identifier = (binary_expression "param_1 + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) 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 "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 gldelf_i386_add_sysroot(char *path)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(ld_sysroot);\n  __c = (int)config.rpath_separator;\n  pcVar2 = path;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(path);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)config.rpath_separator;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*path == '/') {\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(path,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)path);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (int)pcVar5;\n  }\n  strcpy(__dest,path);\n  return pcVar4;\n}\n\n" comment (function_definition "char * __regparm3 gldelf_i386_add_sysroot(char *path)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(ld_sysroot);\n  __c = (int)config.rpath_separator;\n  pcVar2 = path;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(path);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)config.rpath_separator;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*path == '/') {\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(path,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)path);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (int)pcVar5;\n  }\n  strcpy(__dest,path);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* __regparm3 gldelf_i386_add_sysroot(char *path)" * (ERROR "__regparm3" identifier) (function_declarator "gldelf_i386_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  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(ld_sysroot);\n  __c = (int)config.rpath_separator;\n  pcVar2 = path;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(path);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)config.rpath_separator;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*path == '/') {\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(path,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)path);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (int)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 "int iVar6;" primitive_type identifier ;) (declaration "int __c;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 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 "__c = (int)config.rpath_separator;" (assignment_expression "__c = (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      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }" if (parenthesized_expression "(*pcVar2 == '/')" ( (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar6 = iVar6 + sVar1;\n    }" { (expression_statement "iVar6 = iVar6 + sVar1;" (assignment_expression "iVar6 = iVar6 + sVar1" identifier = (binary_expression "iVar6 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = strchr(pcVar2,__c);" (assignment_expression "pcVar2 = strchr(pcVar2,__c)" identifier = (call_expression "strchr(pcVar2,__c)" identifier (argument_list "(pcVar2,__c)" ( 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(iVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(iVar6 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar6 + 1 + sVar3)" identifier (argument_list "(iVar6 + 1 + sVar3)" ( (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "iVar6 = (int)config.rpath_separator;" (assignment_expression "iVar6 = (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    __dest = pcVar2;\n    if (*path == '/') {\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(path,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)path);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (int)pcVar5;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    __dest = pcVar2;\n    if (*path == '/') {\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(path,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)path);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,path,(size_t)pcVar5);\n    path = path + (int)pcVar5;\n  }" { (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" identifier = identifier) ;) (if_statement "if (*path == '/') {\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }" if (parenthesized_expression "(*path == '/')" ( (binary_expression "*path == '/'" (pointer_expression "*path" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      strcpy(pcVar2,ld_sysroot);\n      __dest = pcVar2 + sVar1;\n    }" { (expression_statement "strcpy(pcVar2,ld_sysroot);" (call_expression "strcpy(pcVar2,ld_sysroot)" identifier (argument_list "(pcVar2,ld_sysroot)" ( identifier , identifier ))) ;) (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" identifier = (binary_expression "pcVar2 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar5 = strchr(path,iVar6);" (assignment_expression "pcVar5 = strchr(path,iVar6)" identifier = (call_expression "strchr(path,iVar6)" identifier (argument_list "(path,iVar6)" ( 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 - (int)path);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)path)" identifier = (binary_expression "pcVar5 + (1 - (int)path)" identifier + (parenthesized_expression "(1 - (int)path)" ( (binary_expression "1 - (int)path" number_literal - (cast_expression "(int)path" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar2 = __dest + (int)pcVar5;" (assignment_expression "pcVar2 = __dest + (int)pcVar5" identifier = (binary_expression "__dest + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) 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 + (int)pcVar5;" (assignment_expression "path = path + (int)pcVar5" identifier = (binary_expression "path + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) 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 * __regparm3 FUN_000372d0(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}\n\n" (function_definition "char * __regparm3 FUN_000372d0(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000372d0(char *param_1)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000372d0(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  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)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 "int iVar6;" primitive_type identifier ;) (declaration "int __c;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "sVar1 = strlen(DAT_000bbe88);" (assignment_expression "sVar1 = strlen(DAT_000bbe88)" identifier = (call_expression "strlen(DAT_000bbe88)" identifier (argument_list "(DAT_000bbe88)" ( identifier )))) ;) (expression_statement "__c = (int)DAT_000bbf48;" (assignment_expression "__c = (int)DAT_000bbf48" identifier = (cast_expression "(int)DAT_000bbf48" ( (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      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" { (if_statement "if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }" if (parenthesized_expression "(*pcVar2 == '/')" ( (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      iVar6 = iVar6 + sVar1;\n    }" { (expression_statement "iVar6 = iVar6 + sVar1;" (assignment_expression "iVar6 = iVar6 + sVar1" identifier = (binary_expression "iVar6 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar2 = strchr(pcVar2,__c);" (assignment_expression "pcVar2 = strchr(pcVar2,__c)" identifier = (call_expression "strchr(pcVar2,__c)" identifier (argument_list "(pcVar2,__c)" ( 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(iVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(iVar6 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar6 + 1 + sVar3)" identifier (argument_list "(iVar6 + 1 + sVar3)" ( (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "iVar6 = (int)DAT_000bbf48;" (assignment_expression "iVar6 = (int)DAT_000bbf48" identifier = (cast_expression "(int)DAT_000bbf48" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" identifier = identifier) ;) (while_statement "while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }" { (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" identifier = identifier) ;) (if_statement "if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }" if (parenthesized_expression "(*param_1 == '/')" ( (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" * identifier) == (char_literal "'/'" ' character ')) )) (compound_statement "{\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }" { (expression_statement "strcpy(pcVar2,DAT_000bbe88);" (call_expression "strcpy(pcVar2,DAT_000bbe88)" identifier (argument_list "(pcVar2,DAT_000bbe88)" ( identifier , identifier ))) ;) (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" identifier = (binary_expression "pcVar2 + sVar1" identifier + identifier)) ;) })) (expression_statement "pcVar5 = strchr(param_1,iVar6);" (assignment_expression "pcVar5 = strchr(param_1,iVar6)" identifier = (call_expression "strchr(param_1,iVar6)" identifier (argument_list "(param_1,iVar6)" ( 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 - (int)param_1);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)param_1)" identifier = (binary_expression "pcVar5 + (1 - (int)param_1)" identifier + (parenthesized_expression "(1 - (int)param_1)" ( (binary_expression "1 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "pcVar2 = __dest + (int)pcVar5;" (assignment_expression "pcVar2 = __dest + (int)pcVar5" identifier = (binary_expression "__dest + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) 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 + (int)pcVar5;" (assignment_expression "param_1 = param_1 + (int)pcVar5" identifier = (binary_expression "param_1 + (int)pcVar5" identifier + (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) 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 * (ERROR IDENT) (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 TYPE 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 { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (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 + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) 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 TYPE) ) IDENT))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "char * __regparm3 FUN_000372d0(char *param_1)\n\n{\n  size_t sVar1;\n  char *pcVar2;\n  size_t sVar3;\n  char *pcVar4;\n  char *pcVar5;\n  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }\n  strcpy(__dest,param_1);\n  return pcVar4;\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_000372d0(char *param_1)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000372d0(char *param_1)" (identifier "FUN_000372d0") (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  int iVar6;\n  int __c;\n  char *__dest;\n  \n  iVar6 = 0;\n  sVar1 = strlen(DAT_000bbe88);\n  __c = (int)DAT_000bbf48;\n  pcVar2 = param_1;\n  while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }\n  sVar3 = strlen(param_1);\n  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);\n  iVar6 = (int)DAT_000bbf48;\n  pcVar2 = pcVar4;\n  while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)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 "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int __c;" (primitive_type "int") (identifier "__c") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar1 = strlen(DAT_000bbe88);" (assignment_expression "sVar1 = strlen(DAT_000bbe88)" (identifier "sVar1") (= "=") (call_expression "strlen(DAT_000bbe88)" (identifier "strlen") (argument_list "(DAT_000bbe88)" (( "(") (identifier "DAT_000bbe88") () ")")))) (; ";")) (expression_statement "__c = (int)DAT_000bbf48;" (assignment_expression "__c = (int)DAT_000bbf48" (identifier "__c") (= "=") (cast_expression "(int)DAT_000bbf48" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_000bbf48"))) (; ";")) (expression_statement "pcVar2 = param_1;" (assignment_expression "pcVar2 = param_1" (identifier "pcVar2") (= "=") (identifier "param_1")) (; ";")) (while_statement "while( true ) {\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }\n    pcVar2 = strchr(pcVar2,__c);\n    if (pcVar2 == (char *)0x0) break;\n    pcVar2 = pcVar2 + 1;\n  }" ({ "{") (if_statement "if (*pcVar2 == '/') {\n      iVar6 = iVar6 + sVar1;\n    }" (if "if") (parenthesized_expression "(*pcVar2 == '/')" (( "(") (binary_expression "*pcVar2 == '/'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      iVar6 = iVar6 + sVar1;\n    }" ({ "{") (expression_statement "iVar6 = iVar6 + sVar1;" (assignment_expression "iVar6 = iVar6 + sVar1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + sVar1" (identifier "iVar6") (+ "+") (identifier "sVar1"))) (; ";")) (} "}"))) (expression_statement "pcVar2 = strchr(pcVar2,__c);" (assignment_expression "pcVar2 = strchr(pcVar2,__c)" (identifier "pcVar2") (= "=") (call_expression "strchr(pcVar2,__c)" (identifier "strchr") (argument_list "(pcVar2,__c)" (( "(") (identifier "pcVar2") (, ",") (identifier "__c") () ")")))) (; ";")) (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(iVar6 + 1 + sVar3);" (assignment_expression "pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(iVar6 + 1 + sVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar6 + 1 + sVar3)" (identifier "xmalloc") (argument_list "(iVar6 + 1 + sVar3)" (( "(") (binary_expression "iVar6 + 1 + sVar3" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar3")) () ")"))))) (; ";")) (expression_statement "iVar6 = (int)DAT_000bbf48;" (assignment_expression "iVar6 = (int)DAT_000bbf48" (identifier "iVar6") (= "=") (cast_expression "(int)DAT_000bbf48" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "DAT_000bbf48"))) (; ";")) (expression_statement "pcVar2 = pcVar4;" (assignment_expression "pcVar2 = pcVar4" (identifier "pcVar2") (= "=") (identifier "pcVar4")) (; ";")) (while_statement "while( true ) {\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    __dest = pcVar2;\n    if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }\n    pcVar5 = strchr(param_1,iVar6);\n    if (pcVar5 == (char *)0x0) break;\n    pcVar5 = pcVar5 + (1 - (int)param_1);\n    pcVar2 = __dest + (int)pcVar5;\n    strncpy(__dest,param_1,(size_t)pcVar5);\n    param_1 = param_1 + (int)pcVar5;\n  }" ({ "{") (expression_statement "__dest = pcVar2;" (assignment_expression "__dest = pcVar2" (identifier "__dest") (= "=") (identifier "pcVar2")) (; ";")) (if_statement "if (*param_1 == '/') {\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }" (if "if") (parenthesized_expression "(*param_1 == '/')" (( "(") (binary_expression "*param_1 == '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n      strcpy(pcVar2,DAT_000bbe88);\n      __dest = pcVar2 + sVar1;\n    }" ({ "{") (expression_statement "strcpy(pcVar2,DAT_000bbe88);" (call_expression "strcpy(pcVar2,DAT_000bbe88)" (identifier "strcpy") (argument_list "(pcVar2,DAT_000bbe88)" (( "(") (identifier "pcVar2") (, ",") (identifier "DAT_000bbe88") () ")"))) (; ";")) (expression_statement "__dest = pcVar2 + sVar1;" (assignment_expression "__dest = pcVar2 + sVar1" (identifier "__dest") (= "=") (binary_expression "pcVar2 + sVar1" (identifier "pcVar2") (+ "+") (identifier "sVar1"))) (; ";")) (} "}"))) (expression_statement "pcVar5 = strchr(param_1,iVar6);" (assignment_expression "pcVar5 = strchr(param_1,iVar6)" (identifier "pcVar5") (= "=") (call_expression "strchr(param_1,iVar6)" (identifier "strchr") (argument_list "(param_1,iVar6)" (( "(") (identifier "param_1") (, ",") (identifier "iVar6") () ")")))) (; ";")) (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 - (int)param_1);" (assignment_expression "pcVar5 = pcVar5 + (1 - (int)param_1)" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + (1 - (int)param_1)" (identifier "pcVar5") (+ "+") (parenthesized_expression "(1 - (int)param_1)" (( "(") (binary_expression "1 - (int)param_1" (number_literal "1") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")))) (; ";")) (expression_statement "pcVar2 = __dest + (int)pcVar5;" (assignment_expression "pcVar2 = __dest + (int)pcVar5" (identifier "pcVar2") (= "=") (binary_expression "__dest + (int)pcVar5" (identifier "__dest") (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (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 + (int)pcVar5;" (assignment_expression "param_1 = param_1 + (int)pcVar5" (identifier "param_1") (= "=") (binary_expression "param_1 + (int)pcVar5" (identifier "param_1") (+ "+") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (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") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 function_1(char *var_12)

{
  size_t var_3;
  char *var_5;
  size_t var_7;
  char *pcVar4;
  char *var_9;
  int var_2;
  int __c;
  char *var_10;
  
  var_2 = 0;
  var_3 = var_1(ld_sysroot);
  __c = (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,__c);
    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);
  var_2 = (int)config.rpath_separator;
  var_5 = pcVar4;
  while( true ) {
    var_10 = var_5;
    if (*var_12 == '/') {
      var_8(var_5,ld_sysroot);
      var_10 = var_5 + var_3;
    }
    var_9 = var_4(var_12,var_2);
    if (var_9 == (char *)0x0) break;
    var_9 = var_9 + (1 - (int)var_12);
    var_5 = var_10 + (int)var_9;
    var_11(var_10,var_12,(size_t)var_9);
    var_12 = var_12 + (int)var_9;
  }
  var_8(var_10,var_12);
  return pcVar4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) 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: (primitive_type) 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 (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (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: (parenthesized_expression (binary_expression left: (number_literal) right: (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: (primitive_type)) 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: (primitive_type)) value: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 MASKED(char *param_1)

{
  size_t sVar1;
  char *pcVar2;
  size_t sVar3;
  char *pcVar4;
  char *pcVar5;
  int iVar6;
  int __c;
  char *__dest;
  
  iVar6 = 0;
  sVar1 = strlen(DAT_000bbe88);
  __c = (int)DAT_000bbf48;
  pcVar2 = param_1;
  while( true ) {
    if (*pcVar2 == '/') {
      iVar6 = iVar6 + sVar1;
    }
    pcVar2 = strchr(pcVar2,__c);
    if (pcVar2 == (char *)0x0) break;
    pcVar2 = pcVar2 + 1;
  }
  sVar3 = strlen(param_1);
  pcVar4 = (char *)xmalloc(iVar6 + 1 + sVar3);
  iVar6 = (int)DAT_000bbf48;
  pcVar2 = pcVar4;
  while( true ) {
    __dest = pcVar2;
    if (*param_1 == '/') {
      strcpy(pcVar2,DAT_000bbe88);
      __dest = pcVar2 + sVar1;
    }
    pcVar5 = strchr(param_1,iVar6);
    if (pcVar5 == (char *)0x0) break;
    pcVar5 = pcVar5 + (1 - (int)param_1);
    pcVar2 = __dest + (int)pcVar5;
    strncpy(__dest,param_1,(size_t)pcVar5);
    param_1 = param_1 + (int)pcVar5;
  }
  strcpy(__dest,param_1);
  return pcVar4;
}

