
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void new_undefined_symbol(Plugin_manager * this, Symbol * sym) */

void __thiscall gold::Plugin_manager::new_undefined_symbol(Plugin_manager *this,Symbol *sym)

{
  iterator __position;
  Symbol *local_10 [2];
  
  if (this->in_replacement_phase_ != false) {
    __position._M_current =
         (this->undefined_symbols_).
         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;
    if (__position._M_current !=
        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>
        ._M_impl._M_end_of_storage) {
      *__position._M_current = sym;
      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.
      _M_impl._M_finish = __position._M_current + 1;
      return;
    }
    local_10[0] = sym;
    std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::
    _M_realloc_insert<gold::Symbol*_const&>(&this->undefined_symbols_,__position,local_10);
  }
  return;
}



void FUN_0021c680(long param_1,undefined8 param_2)

{
  undefined8 *puVar1;
  undefined8 local_10 [2];
  
  if (*(char *)(param_1 + 0xb1) != '\0') {
    puVar1 = *(undefined8 **)(param_1 + 0xa0);
    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {
      *puVar1 = param_2;
      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;
      return;
    }
    local_10[0] = param_2;
    FUN_001697e0(param_1 + 0x98,puVar1,local_10);
  }
  return;
}


SUB RSP,0x18
CMP byte ptr [RDI + 0xb1],0x0
MOV qword ptr [RSP + 0x8],RSI
JNZ 0x0021c6a0
ADD RSP,0x18
RET
MOV RSI,qword ptr [RDI + 0xa0]
CMP RSI,qword ptr [RDI + 0xa8]
JZ 0x0021c6d0
MOV RAX,qword ptr [RSP + 0x8]
ADD RSI,0x8
MOV qword ptr [RSI + -0x8],RAX
MOV qword ptr [RDI + 0xa0],RSI
ADD RSP,0x18
RET
LEA RDX,[RSP + 0x8]
ADD RDI,0x98
CALL 0x001697e0
JMP 0x0021c692
(translation_unit "void FUN_0021c680(long param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0021c680(long param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0021c680(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (if_statement "if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xb1) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xb1) != '\0'" (pointer_expression "*(char *)(param_1 + 0xb1)" * (cast_expression "(char *)(param_1 + 0xb1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb1)" ( (binary_expression "param_1 + 0xb1" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }" { (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0xa0);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0xa0)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0xa0)" * (cast_expression "(undefined8 **)(param_1 + 0xa0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }" if (parenthesized_expression "(puVar1 != *(undefined8 **)(param_1 + 0xa8))" ( (binary_expression "puVar1 != *(undefined8 **)(param_1 + 0xa8)" identifier != (pointer_expression "*(undefined8 **)(param_1 + 0xa8)" * (cast_expression "(undefined8 **)(param_1 + 0xa8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) ))))) )) (compound_statement "{\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }" { (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(param_1 + 0xa0) = puVar1 + 1" (pointer_expression "*(undefined8 **)(param_1 + 0xa0)" * (cast_expression "(undefined8 **)(param_1 + 0xa0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_10[0] = param_2;" (assignment_expression "local_10[0] = param_2" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_001697e0(param_1 + 0x98,puVar1,local_10);" (call_expression "FUN_001697e0(param_1 + 0x98,puVar1,local_10)" identifier (argument_list "(param_1 + 0x98,puVar1,local_10)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void new_undefined_symbol(Plugin_manager * this, Symbol * sym) */\n\nvoid __thiscall gold::Plugin_manager::new_undefined_symbol(Plugin_manager *this,Symbol *sym)\n\n{\n  iterator __position;\n  Symbol *local_10 [2];\n  \n  if (this->in_replacement_phase_ != false) {\n    __position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;\n    if (__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage) {\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }\n    local_10[0] = sym;\n    std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::\n    _M_realloc_insert<gold::Symbol*_const&>(&this->undefined_symbols_,__position,local_10);\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Plugin_manager::new_undefined_symbol(Plugin_manager *this,Symbol *sym)\n\n{\n  iterator __position;\n  Symbol *local_10 [2];\n  \n  if (this->in_replacement_phase_ != false) {\n    __position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;\n    if (__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage) {\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }\n    local_10[0] = sym;\n    std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::\n    _M_realloc_insert<gold::Symbol*_const&>(&this->undefined_symbols_,__position,local_10);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Plugin_manager::" identifier : : identifier : :) (function_declarator "new_undefined_symbol(Plugin_manager *this,Symbol *sym)" identifier (parameter_list "(Plugin_manager *this,Symbol *sym)" ( (parameter_declaration "Plugin_manager *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Symbol *sym" type_identifier (pointer_declarator "*sym" * identifier)) ))) (compound_statement "{\n  iterator __position;\n  Symbol *local_10 [2];\n  \n  if (this->in_replacement_phase_ != false) {\n    __position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;\n    if (__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage) {\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }\n    local_10[0] = sym;\n    std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::\n    _M_realloc_insert<gold::Symbol*_const&>(&this->undefined_symbols_,__position,local_10);\n  }\n  return;\n}" { (declaration "iterator __position;" type_identifier identifier ;) (declaration "Symbol *local_10 [2];" type_identifier (pointer_declarator "*local_10 [2]" * (array_declarator "local_10 [2]" identifier [ number_literal ])) ;) (if_statement "if (this->in_replacement_phase_ != false) {\n    __position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;\n    if (__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage) {\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }\n    local_10[0] = sym;\n    std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::\n    _M_realloc_insert<gold::Symbol*_const&>(&this->undefined_symbols_,__position,local_10);\n  }" if (parenthesized_expression "(this->in_replacement_phase_ != false)" ( (binary_expression "this->in_replacement_phase_ != false" (field_expression "this->in_replacement_phase_" identifier -> field_identifier) != false) )) (compound_statement "{\n    __position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;\n    if (__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage) {\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }\n    local_10[0] = sym;\n    std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::\n    _M_realloc_insert<gold::Symbol*_const&>(&this->undefined_symbols_,__position,local_10);\n  }" { (expression_statement "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish;" (field_expression "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl._M_finish" (field_expression "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>._M_impl" (binary_expression "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold::Symbol*,_std" (assignment_expression "__position._M_current =\n         (this->undefined_symbols_).\n         super__Vector_base<gold" (field_expression "__position._M_current" identifier . field_identifier) = (binary_expression "(this->undefined_symbols_).\n         super__Vector_base<gold" (field_expression "(this->undefined_symbols_).\n         super__Vector_base" (parenthesized_expression "(this->undefined_symbols_)" ( (field_expression "this->undefined_symbols_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage) {\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }" if (parenthesized_expression "(__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage)" ( (field_expression "__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl._M_end_of_storage" (field_expression "__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>\n        ._M_impl" (binary_expression "__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std" (binary_expression "__position._M_current !=\n        (this->undefined_symbols_).super__Vector_base<gold" (field_expression "__position._M_current" identifier . field_identifier) != (binary_expression "(this->undefined_symbols_).super__Vector_base<gold" (field_expression "(this->undefined_symbols_).super__Vector_base" (parenthesized_expression "(this->undefined_symbols_)" ( (field_expression "this->undefined_symbols_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n      *__position._M_current = sym;\n      (this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;\n      return;\n    }" { (expression_statement "*__position._M_current = sym;" (assignment_expression "*__position._M_current = sym" (pointer_expression "*__position._M_current" * (field_expression "__position._M_current" identifier . field_identifier)) = identifier) ;) (expression_statement "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1;" (assignment_expression "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish = __position._M_current + 1" (field_expression "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl._M_finish" (field_expression "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_>.\n      _M_impl" (binary_expression "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold::Symbol*>_" (binary_expression "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std::allocator<gold" (binary_expression "(this->undefined_symbols_).super__Vector_base<gold::Symbol*,_std" (binary_expression "(this->undefined_symbols_).super__Vector_base<gold" (field_expression "(this->undefined_symbols_).super__Vector_base" (parenthesized_expression "(this->undefined_symbols_)" ( (field_expression "this->undefined_symbols_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Symbol" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (binary_expression "__position._M_current + 1" (field_expression "__position._M_current" identifier . field_identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_10[0] = sym;" (assignment_expression "local_10[0] = sym" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (ERROR "std::vector<gold::Symbol*,_std::allocator<gold::Symbol*>_>::\n    _M_realloc_insert<gold::" (comma_expression "std::vector<gold::Symbol*,_std" identifier (ERROR "::vector<gold::Symbol*" : : (binary_expression "vector<gold" identifier < identifier) : : identifier *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : (binary_expression "Symbol*>_>::\n    _M_realloc_insert<gold" (binary_expression "Symbol*>_>::\n    _M_realloc_insert" (binary_expression "Symbol*>_" identifier * (ERROR ">" >) identifier) > (ERROR "::" : :) identifier) < identifier) : :) (expression_statement "Symbol*_const&>(&this->undefined_symbols_,__position,local_10);" (binary_expression "Symbol*_const&>(&this->undefined_symbols_,__position,local_10)" (binary_expression "Symbol*_const" identifier * identifier) (ERROR "&" &) > (parenthesized_expression "(&this->undefined_symbols_,__position,local_10)" ( (comma_expression "&this->undefined_symbols_,__position,local_10" (pointer_expression "&this->undefined_symbols_" & (field_expression "this->undefined_symbols_" identifier -> field_identifier)) , (comma_expression "__position,local_10" identifier , identifier)) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0021c680(long param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0021c680(long param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0021c680(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 local_10 [2];" type_identifier (array_declarator "local_10 [2]" identifier [ number_literal ]) ;) (if_statement "if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0xb1) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xb1) != '\0'" (pointer_expression "*(char *)(param_1 + 0xb1)" * (cast_expression "(char *)(param_1 + 0xb1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb1)" ( (binary_expression "param_1 + 0xb1" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }" { (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0xa0);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0xa0)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0xa0)" * (cast_expression "(undefined8 **)(param_1 + 0xa0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }" if (parenthesized_expression "(puVar1 != *(undefined8 **)(param_1 + 0xa8))" ( (binary_expression "puVar1 != *(undefined8 **)(param_1 + 0xa8)" identifier != (pointer_expression "*(undefined8 **)(param_1 + 0xa8)" * (cast_expression "(undefined8 **)(param_1 + 0xa8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) ))))) )) (compound_statement "{\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }" { (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(param_1 + 0xa0) = puVar1 + 1" (pointer_expression "*(undefined8 **)(param_1 + 0xa0)" * (cast_expression "(undefined8 **)(param_1 + 0xa0)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_10[0] = param_2;" (assignment_expression "local_10[0] = param_2" (subscript_expression "local_10[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_001697e0(param_1 + 0x98,puVar1,local_10);" (call_expression "FUN_001697e0(param_1 + 0x98,puVar1,local_10)" identifier (argument_list "(param_1 + 0x98,puVar1,local_10)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (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 IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0021c680(long param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0021c680(long param_1,undefined8 param_2)" (identifier "FUN_0021c680") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 local_10 [2];\n  \n  if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 local_10 [2];" (type_identifier "undefined8") (array_declarator "local_10 [2]" (identifier "local_10") ([ "[") (number_literal "2") (] "]")) (; ";")) (if_statement "if (*(char *)(param_1 + 0xb1) != '\0') {\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xb1) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xb1) != '\0'" (pointer_expression "*(char *)(param_1 + 0xb1)" (* "*") (cast_expression "(char *)(param_1 + 0xb1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb1)" (( "(") (binary_expression "param_1 + 0xb1" (identifier "param_1") (+ "+") (number_literal "0xb1")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar1 = *(undefined8 **)(param_1 + 0xa0);\n    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }\n    local_10[0] = param_2;\n    FUN_001697e0(param_1 + 0x98,puVar1,local_10);\n  }" ({ "{") (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0xa0);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0xa0)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")"))))) (; ";")) (if_statement "if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }" (if "if") (parenthesized_expression "(puVar1 != *(undefined8 **)(param_1 + 0xa8))" (( "(") (binary_expression "puVar1 != *(undefined8 **)(param_1 + 0xa8)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined8 **)(param_1 + 0xa8)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0xa8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xa8)" (( "(") (binary_expression "param_1 + 0xa8" (identifier "param_1") (+ "+") (number_literal "0xa8")) () ")"))))) () ")")) (compound_statement "{\n      *puVar1 = param_2;\n      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;\n      return;\n    }" ({ "{") (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(param_1 + 0xa0) = puVar1 + 1" (pointer_expression "*(undefined8 **)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "local_10[0] = param_2;" (assignment_expression "local_10[0] = param_2" (subscript_expression "local_10[0]" (identifier "local_10") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_001697e0(param_1 + 0x98,puVar1,local_10);" (call_expression "FUN_001697e0(param_1 + 0x98,puVar1,local_10)" (identifier "FUN_001697e0") (argument_list "(param_1 + 0x98,puVar1,local_10)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) (, ",") (identifier "puVar1") (, ",") (identifier "local_10") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void new_undefined_symbol(Plugin_manager * this, Symbol * sym) */

void __thiscall var_1::type_1::function_1(type_1 *this,type_2 *sym)

{
  type_3 __position;
  type_2 *local_10 [2];
  
  if (this->in_replacement_phase_ != false) {
    __position._M_current =
         (this->undefined_symbols_).
         super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>._M_impl._M_finish;
    if (__position._M_current !=
        (this->undefined_symbols_).super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>
        ._M_impl._M_end_of_storage) {
      *__position._M_current = sym;
      (this->undefined_symbols_).super__Vector_base<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>.
      _M_impl._M_finish = __position._M_current + 1;
      return;
    }
    local_10[0] = sym;
    std::vector<var_1::type_2*,var_2::allocator<var_1::type_2*>var_3>::
    _M_realloc_insert<var_1::type_2*var_4&>(&this->undefined_symbols_,__position,local_10);
  }
  return;
}


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

void MASKED(long param_1,undefined8 param_2)

{
  undefined8 *puVar1;
  undefined8 local_10 [2];
  
  if (*(char *)(param_1 + 0xb1) != '\0') {
    puVar1 = *(undefined8 **)(param_1 + 0xa0);
    if (puVar1 != *(undefined8 **)(param_1 + 0xa8)) {
      *puVar1 = param_2;
      *(undefined8 **)(param_1 + 0xa0) = puVar1 + 1;
      return;
    }
    local_10[0] = param_2;
    FUN_001697e0(param_1 + 0x98,puVar1,local_10);
  }
  return;
}

