
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void add_sysroot(General_options * this) */

void __thiscall gold::General_options::add_sysroot(General_options *this)

{
  char *pcVar1;
  Search_directory *this_00;
  Search_directory *pSVar2;
  
  pcVar1 = (this->sysroot_).value;
  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {
    pcVar1 = "/";
    (this->sysroot_).value = "/";
  }
  pcVar1 = lrealpath(pcVar1);
  this_00 = (this->library_path_).value.
            super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.
            _M_impl._M_start;
  if (this_00 !=
      (this->library_path_).value.
      super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>._M_impl.
      _M_finish) {
    do {
      pSVar2 = this_00 + 1;
      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);
      this_00 = pSVar2;
    } while ((this->library_path_).value.
             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.
             _M_impl._M_finish != pSVar2);
  }
  free(pcVar1);
  return;
}



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

void FUN_000d8630(int param_1)

{
  char *pcVar1;
  void *__ptr;
  int iVar2;
  int iVar3;
  
  pcVar1 = *(char **)(param_1 + 0x3af4);
  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {
    pcVar1 = "/";
    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;
  }
  __ptr = (void *)FUN_001a9a30(pcVar1);
  iVar2 = *(int *)(param_1 + 0x2184);
  if (iVar2 != *(int *)(param_1 + 0x2188)) {
    do {
      iVar3 = iVar2 + 0x1c;
      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);
      iVar2 = iVar3;
    } while (*(int *)(param_1 + 0x2188) != iVar3);
  }
  free(__ptr);
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x2669c7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EDI + 0x3af4]
TEST EAX,EAX
JZ 0x000d86b0
CMP byte ptr [EAX],0x0
JZ 0x000d86b0
SUB ESP,0xc
PUSH EAX
CALL 0x001a9a30
ADD ESP,0x10
MOV ESI,dword ptr [EDI + 0x2184]
MOV EBP,EAX
CMP ESI,dword ptr [EDI + 0x2188]
JZ 0x000d8696
LEA ESI,[ESI]
SUB ESP,0x4
PUSH EBP
PUSH dword ptr [EDI + 0x3af4]
PUSH ESI
ADD ESI,0x1c
CALL 0x000d8270
ADD ESP,0x10
CMP dword ptr [EDI + 0x2188],ESI
JNZ 0x000d8678
SUB ESP,0xc
PUSH EBP
CALL 0x00028420
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfff12db4]
MOV dword ptr [EDI + 0x3af4],EAX
JMP 0x000d8655
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000d8630(int param_1)\n\n{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}\n\n" comment (function_definition "void FUN_000d8630(int param_1)\n\n{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "FUN_000d8630(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar1 = *(char **)(param_1 + 0x3af4);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x3af4)" identifier = (pointer_expression "*(char **)(param_1 + 0x3af4)" * (cast_expression "(char **)(param_1 + 0x3af4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3af4)" ( (binary_expression "param_1 + 0x3af4" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) || (*pcVar1 == '\0'))" ( (binary_expression "(pcVar1 == (char *)0x0) || (*pcVar1 == '\0')" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }" { (expression_statement "pcVar1 = "/";" (assignment_expression "pcVar1 = "/"" identifier = (string_literal ""/"" " string_content ")) ;) (expression_statement "*(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;" (assignment_expression "*(undefined **)(param_1 + 0x3af4) = &DAT_00251db4" (pointer_expression "*(undefined **)(param_1 + 0x3af4)" * (cast_expression "(undefined **)(param_1 + 0x3af4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3af4)" ( (binary_expression "param_1 + 0x3af4" identifier + number_literal) )))) = (pointer_expression "&DAT_00251db4" & identifier)) ;) })) (expression_statement "__ptr = (void *)FUN_001a9a30(pcVar1);" (assignment_expression "__ptr = (void *)FUN_001a9a30(pcVar1)" identifier = (cast_expression "(void *)FUN_001a9a30(pcVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a9a30(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x2184);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2184)" identifier = (pointer_expression "*(int *)(param_1 + 0x2184)" * (cast_expression "(int *)(param_1 + 0x2184)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2184)" ( (binary_expression "param_1 + 0x2184" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }" if (parenthesized_expression "(iVar2 != *(int *)(param_1 + 0x2188))" ( (binary_expression "iVar2 != *(int *)(param_1 + 0x2188)" identifier != (pointer_expression "*(int *)(param_1 + 0x2188)" * (cast_expression "(int *)(param_1 + 0x2188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2188)" ( (binary_expression "param_1 + 0x2188" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }" { (do_statement "do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);" do (compound_statement "{\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    }" { (expression_statement "iVar3 = iVar2 + 0x1c;" (assignment_expression "iVar3 = iVar2 + 0x1c" identifier = (binary_expression "iVar2 + 0x1c" identifier + number_literal)) ;) (expression_statement "FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);" (call_expression "FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr)" identifier (argument_list "(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x3af4)" * (cast_expression "(undefined4 *)(param_1 + 0x3af4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3af4)" ( (binary_expression "param_1 + 0x3af4" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*(int *)(param_1 + 0x2188) != iVar3)" ( (binary_expression "*(int *)(param_1 + 0x2188) != iVar3" (pointer_expression "*(int *)(param_1 + 0x2188)" * (cast_expression "(int *)(param_1 + 0x2188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2188)" ( (binary_expression "param_1 + 0x2188" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void add_sysroot(General_options * this) */\n\nvoid __thiscall gold::General_options::add_sysroot(General_options *this)\n\n{\n  char *pcVar1;\n  Search_directory *this_00;\n  Search_directory *pSVar2;\n  \n  pcVar1 = (this->sysroot_).value;\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    (this->sysroot_).value = "/";\n  }\n  pcVar1 = lrealpath(pcVar1);\n  this_00 = (this->library_path_).value.\n            super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n            _M_impl._M_start;\n  if (this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>._M_impl.\n      _M_finish) {\n    do {\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    } while ((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2);\n  }\n  free(pcVar1);\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall gold::General_options::add_sysroot(General_options *this)\n\n{\n  char *pcVar1;\n  Search_directory *this_00;\n  Search_directory *pSVar2;\n  \n  pcVar1 = (this->sysroot_).value;\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    (this->sysroot_).value = "/";\n  }\n  pcVar1 = lrealpath(pcVar1);\n  this_00 = (this->library_path_).value.\n            super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n            _M_impl._M_start;\n  if (this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>._M_impl.\n      _M_finish) {\n    do {\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    } while ((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2);\n  }\n  free(pcVar1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::General_options::" identifier : : identifier : :) (function_declarator "add_sysroot(General_options *this)" identifier (parameter_list "(General_options *this)" ( (parameter_declaration "General_options *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  Search_directory *this_00;\n  Search_directory *pSVar2;\n  \n  pcVar1 = (this->sysroot_).value;\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    (this->sysroot_).value = "/";\n  }\n  pcVar1 = lrealpath(pcVar1);\n  this_00 = (this->library_path_).value.\n            super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n            _M_impl._M_start;\n  if (this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>._M_impl.\n      _M_finish) {\n    do {\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    } while ((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2);\n  }\n  free(pcVar1);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "Search_directory *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "Search_directory *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (expression_statement "pcVar1 = (this->sysroot_).value;" (assignment_expression "pcVar1 = (this->sysroot_).value" identifier = (field_expression "(this->sysroot_).value" (parenthesized_expression "(this->sysroot_)" ( (field_expression "this->sysroot_" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    (this->sysroot_).value = "/";\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) || (*pcVar1 == '\0'))" ( (binary_expression "(pcVar1 == (char *)0x0) || (*pcVar1 == '\0')" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar1 = "/";\n    (this->sysroot_).value = "/";\n  }" { (expression_statement "pcVar1 = "/";" (assignment_expression "pcVar1 = "/"" identifier = (string_literal ""/"" " string_content ")) ;) (expression_statement "(this->sysroot_).value = "/";" (assignment_expression "(this->sysroot_).value = "/"" (field_expression "(this->sysroot_).value" (parenthesized_expression "(this->sysroot_)" ( (field_expression "this->sysroot_" identifier -> field_identifier) )) . field_identifier) = (string_literal ""/"" " string_content ")) ;) })) (expression_statement "pcVar1 = lrealpath(pcVar1);" (assignment_expression "pcVar1 = lrealpath(pcVar1)" identifier = (call_expression "lrealpath(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier )))) ;) (ERROR "this_00 = (this->library_path_).value.\n            super__Vector_base<gold::Search_directory,_std::allocator<gold::" (comma_expression "this_00 = (this->library_path_).value.\n            super__Vector_base<gold::Search_directory,_std" (assignment_expression "this_00 = (this->library_path_).value.\n            super__Vector_base<gold" identifier = (binary_expression "(this->library_path_).value.\n            super__Vector_base<gold" (field_expression "(this->library_path_).value.\n            super__Vector_base" (field_expression "(this->library_path_).value" (parenthesized_expression "(this->library_path_)" ( (field_expression "this->library_path_" identifier -> field_identifier) )) . field_identifier) . field_identifier) < identifier)) (ERROR "::Search_directory" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "Search_directory>_>.\n            _M_impl._M_start;" (field_expression "Search_directory>_>.\n            _M_impl._M_start" (field_expression "Search_directory>_>.\n            _M_impl" (binary_expression "Search_directory>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>._M_impl.\n      _M_finish) {\n    do {\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    } while ((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2);\n  }" if (parenthesized_expression "(this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>._M_impl.\n      _M_finish)" ( (ERROR "this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std::allocator<gold::" (comma_expression "this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold::Search_directory,_std" (binary_expression "this_00 !=\n      (this->library_path_).value.\n      super__Vector_base<gold" identifier != (binary_expression "(this->library_path_).value.\n      super__Vector_base<gold" (field_expression "(this->library_path_).value.\n      super__Vector_base" (field_expression "(this->library_path_).value" (parenthesized_expression "(this->library_path_)" ( (field_expression "this->library_path_" identifier -> field_identifier) )) . field_identifier) . field_identifier) < identifier)) (ERROR "::Search_directory" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (field_expression "Search_directory>_>._M_impl.\n      _M_finish" (field_expression "Search_directory>_>._M_impl" (binary_expression "Search_directory>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    } while ((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2);\n  }" { (do_statement "do {\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    } while ((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2);" do (compound_statement "{\n      pSVar2 = this_00 + 1;\n      Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);\n      this_00 = pSVar2;\n    }" { (expression_statement "pSVar2 = this_00 + 1;" (assignment_expression "pSVar2 = this_00 + 1" identifier = (binary_expression "this_00 + 1" identifier + number_literal)) ;) (labeled_statement "Search_directory::add_sysroot(this_00,(this->sysroot_).value,pcVar1);" statement_identifier : (ERROR ":" :) (expression_statement "add_sysroot(this_00,(this->sysroot_).value,pcVar1);" (call_expression "add_sysroot(this_00,(this->sysroot_).value,pcVar1)" identifier (argument_list "(this_00,(this->sysroot_).value,pcVar1)" ( identifier , (field_expression "(this->sysroot_).value" (parenthesized_expression "(this->sysroot_)" ( (field_expression "this->sysroot_" identifier -> field_identifier) )) . field_identifier) , identifier ))) ;)) (expression_statement "this_00 = pSVar2;" (assignment_expression "this_00 = pSVar2" identifier = identifier) ;) }) while (parenthesized_expression "((this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::Search_directory>_>.\n             _M_impl._M_finish != pSVar2)" ( (ERROR "(this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std::allocator<gold::" (comma_expression "(this->library_path_).value.\n             super__Vector_base<gold::Search_directory,_std" (binary_expression "(this->library_path_).value.\n             super__Vector_base<gold" (field_expression "(this->library_path_).value.\n             super__Vector_base" (field_expression "(this->library_path_).value" (parenthesized_expression "(this->library_path_)" ( (field_expression "this->library_path_" identifier -> field_identifier) )) . field_identifier) . field_identifier) < identifier) (ERROR "::Search_directory" : : identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Search_directory>_>.\n             _M_impl._M_finish != pSVar2" (field_expression "Search_directory>_>.\n             _M_impl._M_finish" (field_expression "Search_directory>_>.\n             _M_impl" (binary_expression "Search_directory>_" identifier > identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (expression_statement "free(pcVar1);" (call_expression "free(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000d8630(int param_1)\n\n{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}\n\n" (function_definition "void FUN_000d8630(int param_1)\n\n{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}" primitive_type (function_declarator "FUN_000d8630(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pcVar1 = *(char **)(param_1 + 0x3af4);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x3af4)" identifier = (pointer_expression "*(char **)(param_1 + 0x3af4)" * (cast_expression "(char **)(param_1 + 0x3af4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3af4)" ( (binary_expression "param_1 + 0x3af4" identifier + number_literal) ))))) ;) (if_statement "if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) || (*pcVar1 == '\0'))" ( (binary_expression "(pcVar1 == (char *)0x0) || (*pcVar1 == '\0')" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*pcVar1 == '\0')" ( (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }" { (expression_statement "pcVar1 = "/";" (assignment_expression "pcVar1 = "/"" identifier = (string_literal ""/"" " string_content ")) ;) (expression_statement "*(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;" (assignment_expression "*(undefined **)(param_1 + 0x3af4) = &DAT_00251db4" (pointer_expression "*(undefined **)(param_1 + 0x3af4)" * (cast_expression "(undefined **)(param_1 + 0x3af4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3af4)" ( (binary_expression "param_1 + 0x3af4" identifier + number_literal) )))) = (pointer_expression "&DAT_00251db4" & identifier)) ;) })) (expression_statement "__ptr = (void *)FUN_001a9a30(pcVar1);" (assignment_expression "__ptr = (void *)FUN_001a9a30(pcVar1)" identifier = (cast_expression "(void *)FUN_001a9a30(pcVar1)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001a9a30(pcVar1)" identifier (argument_list "(pcVar1)" ( identifier ))))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x2184);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2184)" identifier = (pointer_expression "*(int *)(param_1 + 0x2184)" * (cast_expression "(int *)(param_1 + 0x2184)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2184)" ( (binary_expression "param_1 + 0x2184" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }" if (parenthesized_expression "(iVar2 != *(int *)(param_1 + 0x2188))" ( (binary_expression "iVar2 != *(int *)(param_1 + 0x2188)" identifier != (pointer_expression "*(int *)(param_1 + 0x2188)" * (cast_expression "(int *)(param_1 + 0x2188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2188)" ( (binary_expression "param_1 + 0x2188" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }" { (do_statement "do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);" do (compound_statement "{\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    }" { (expression_statement "iVar3 = iVar2 + 0x1c;" (assignment_expression "iVar3 = iVar2 + 0x1c" identifier = (binary_expression "iVar2 + 0x1c" identifier + number_literal)) ;) (expression_statement "FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);" (call_expression "FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr)" identifier (argument_list "(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr)" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x3af4)" * (cast_expression "(undefined4 *)(param_1 + 0x3af4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3af4)" ( (binary_expression "param_1 + 0x3af4" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*(int *)(param_1 + 0x2188) != iVar3)" ( (binary_expression "*(int *)(param_1 + 0x2188) != iVar3" (pointer_expression "*(int *)(param_1 + 0x2188)" * (cast_expression "(int *)(param_1 + 0x2188)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2188)" ( (binary_expression "param_1 + 0x2188" identifier + number_literal) )))) != identifier) )) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_000d8630(int param_1)\n\n{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000d8630(int param_1)" (identifier "FUN_000d8630") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  char *pcVar1;\n  void *__ptr;\n  int iVar2;\n  int iVar3;\n  \n  pcVar1 = *(char **)(param_1 + 0x3af4);\n  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }\n  __ptr = (void *)FUN_001a9a30(pcVar1);\n  iVar2 = *(int *)(param_1 + 0x2184);\n  if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }\n  free(__ptr);\n  return;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "pcVar1 = *(char **)(param_1 + 0x3af4);" (assignment_expression "pcVar1 = *(char **)(param_1 + 0x3af4)" (identifier "pcVar1") (= "=") (pointer_expression "*(char **)(param_1 + 0x3af4)" (* "*") (cast_expression "(char **)(param_1 + 0x3af4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x3af4)" (( "(") (binary_expression "param_1 + 0x3af4" (identifier "param_1") (+ "+") (number_literal "0x3af4")) () ")"))))) (; ";")) (if_statement "if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }" (if "if") (parenthesized_expression "((pcVar1 == (char *)0x0) || (*pcVar1 == '\0'))" (( "(") (binary_expression "(pcVar1 == (char *)0x0) || (*pcVar1 == '\0')" (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*pcVar1 == '\0')" (( "(") (binary_expression "*pcVar1 == '\0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    pcVar1 = "/";\n    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;\n  }" ({ "{") (expression_statement "pcVar1 = "/";" (assignment_expression "pcVar1 = "/"" (identifier "pcVar1") (= "=") (string_literal ""/"" (" """) (string_content "/") (" """))) (; ";")) (expression_statement "*(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;" (assignment_expression "*(undefined **)(param_1 + 0x3af4) = &DAT_00251db4" (pointer_expression "*(undefined **)(param_1 + 0x3af4)" (* "*") (cast_expression "(undefined **)(param_1 + 0x3af4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x3af4)" (( "(") (binary_expression "param_1 + 0x3af4" (identifier "param_1") (+ "+") (number_literal "0x3af4")) () ")")))) (= "=") (pointer_expression "&DAT_00251db4" (& "&") (identifier "DAT_00251db4"))) (; ";")) (} "}"))) (expression_statement "__ptr = (void *)FUN_001a9a30(pcVar1);" (assignment_expression "__ptr = (void *)FUN_001a9a30(pcVar1)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_001a9a30(pcVar1)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001a9a30(pcVar1)" (identifier "FUN_001a9a30") (argument_list "(pcVar1)" (( "(") (identifier "pcVar1") () ")"))))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x2184);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x2184)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x2184)" (* "*") (cast_expression "(int *)(param_1 + 0x2184)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2184)" (( "(") (binary_expression "param_1 + 0x2184" (identifier "param_1") (+ "+") (number_literal "0x2184")) () ")"))))) (; ";")) (if_statement "if (iVar2 != *(int *)(param_1 + 0x2188)) {\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }" (if "if") (parenthesized_expression "(iVar2 != *(int *)(param_1 + 0x2188))" (( "(") (binary_expression "iVar2 != *(int *)(param_1 + 0x2188)" (identifier "iVar2") (!= "!=") (pointer_expression "*(int *)(param_1 + 0x2188)" (* "*") (cast_expression "(int *)(param_1 + 0x2188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2188)" (( "(") (binary_expression "param_1 + 0x2188" (identifier "param_1") (+ "+") (number_literal "0x2188")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);\n  }" ({ "{") (do_statement "do {\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    } while (*(int *)(param_1 + 0x2188) != iVar3);" (do "do") (compound_statement "{\n      iVar3 = iVar2 + 0x1c;\n      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);\n      iVar2 = iVar3;\n    }" ({ "{") (expression_statement "iVar3 = iVar2 + 0x1c;" (assignment_expression "iVar3 = iVar2 + 0x1c" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c"))) (; ";")) (expression_statement "FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);" (call_expression "FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr)" (identifier "FUN_000d8270") (argument_list "(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr)" (( "(") (identifier "iVar2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x3af4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x3af4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3af4)" (( "(") (binary_expression "param_1 + 0x3af4" (identifier "param_1") (+ "+") (number_literal "0x3af4")) () ")")))) (, ",") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(param_1 + 0x2188) != iVar3)" (( "(") (binary_expression "*(int *)(param_1 + 0x2188) != iVar3" (pointer_expression "*(int *)(param_1 + 0x2188)" (* "*") (cast_expression "(int *)(param_1 + 0x2188)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2188)" (( "(") (binary_expression "param_1 + 0x2188" (identifier "param_1") (+ "+") (number_literal "0x2188")) () ")")))) (!= "!=") (identifier "iVar3")) () ")")) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void add_sysroot(General_options * this) */

void __thiscall gold::type_1::function_1(type_1 *this)

{
  char *var_1;
  type_2 *var_4;
  type_2 *var_5;
  
  var_1 = (this->sysroot_).value;
  if ((var_1 == (char *)0x0) || (*var_1 == '\0')) {
    var_1 = "/";
    (this->sysroot_).value = "/";
  }
  var_1 = var_2(var_1);
  var_4 = (this->library_path_).value.
            super__Vector_base<gold::type_2,_std::allocator<gold::type_2>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->library_path_).value.
      super__Vector_base<gold::type_2,_std::allocator<gold::type_2>var_3>._M_impl.
      _M_finish) {
    do {
      var_5 = var_4 + 1;
      Search_directory::function_1(var_4,(this->sysroot_).value,var_1);
      var_4 = var_5;
    } while ((this->library_path_).value.
             super__Vector_base<gold::type_2,_std::allocator<gold::type_2>var_3>.
             _M_impl._M_finish != var_5);
  }
  var_6(var_1);
  return;
}


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

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

void MASKED(int param_1)

{
  char *pcVar1;
  void *__ptr;
  int iVar2;
  int iVar3;
  
  pcVar1 = *(char **)(param_1 + 0x3af4);
  if ((pcVar1 == (char *)0x0) || (*pcVar1 == '\0')) {
    pcVar1 = "/";
    *(undefined **)(param_1 + 0x3af4) = &DAT_00251db4;
  }
  __ptr = (void *)FUN_001a9a30(pcVar1);
  iVar2 = *(int *)(param_1 + 0x2184);
  if (iVar2 != *(int *)(param_1 + 0x2188)) {
    do {
      iVar3 = iVar2 + 0x1c;
      FUN_000d8270(iVar2,*(undefined4 *)(param_1 + 0x3af4),__ptr);
      iVar2 = iVar3;
    } while (*(int *)(param_1 + 0x2188) != iVar3);
  }
  free(__ptr);
  return;
}

