
/* DWARF original prototype: void add_object(Cref * this, Object * object) */

void __thiscall gold::Cref::add_object(Cref *this,Object *object)

{
  vector<gold::Object*,_std::allocator<gold::Object*>_> *this_00;
  iterator __position;
  Cref_inputs *pCVar1;
  Object *local_10;
  
  pCVar1 = this->inputs_;
  if (pCVar1 == (Cref_inputs *)0x0) {
    need_inputs(this);
    pCVar1 = this->inputs_;
  }
  this_00 = pCVar1->current_;
  __position._M_current =
       (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.
       _M_finish;
  if (__position._M_current !=
      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.
      _M_end_of_storage) {
    *__position._M_current = object;
    (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =
         __position._M_current + 1;
    return;
  }
  local_10 = object;
  std::vector<gold::Object*,_std::allocator<gold::Object*>_>::
  _M_realloc_insert<gold::Object*_const&>(this_00,__position,&local_10);
  return;
}



void FUN_002a6cd0(long *param_1,undefined8 param_2)

{
  undefined8 *puVar1;
  long lVar2;
  undefined8 local_10;
  
  lVar2 = *param_1;
  if (lVar2 == 0) {
    FUN_002a68c0();
    lVar2 = *param_1;
  }
  lVar2 = *(long *)(lVar2 + 0x48);
  puVar1 = *(undefined8 **)(lVar2 + 8);
  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {
    *puVar1 = param_2;
    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;
    return;
  }
  local_10 = param_2;
  FUN_00250eb0(lVar2,puVar1,&local_10);
  return;
}


PUSH RBX
SUB RSP,0x20
MOV RAX,qword ptr [RDI]
TEST RAX,RAX
JZ 0x002a6d08
MOV RDI,qword ptr [RAX + 0x48]
MOV qword ptr [RSP + 0x18],RSI
MOV RAX,qword ptr [RDI + 0x8]
CMP RAX,qword ptr [RDI + 0x10]
JZ 0x002a6d20
MOV qword ptr [RAX],RSI
ADD RAX,0x8
MOV qword ptr [RDI + 0x8],RAX
ADD RSP,0x20
POP RBX
RET
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
CALL 0x002a68c0
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RSP + 0x8]
JMP 0x002a6cdd
LEA RDX,[RSP + 0x18]
MOV RSI,RAX
CALL 0x00250eb0
ADD RSP,0x20
POP RBX
RET
(translation_unit "void FUN_002a6cd0(long *param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}\n\n" (function_definition "void FUN_002a6cd0(long *param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}" primitive_type (function_declarator "FUN_002a6cd0(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_10;" type_identifier identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }" { (expression_statement "FUN_002a68c0();" (call_expression "FUN_002a68c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "lVar2 = *(long *)(lVar2 + 0x48);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x48)" identifier = (pointer_expression "*(long *)(lVar2 + 0x48)" * (cast_expression "(long *)(lVar2 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x48)" ( (binary_expression "lVar2 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = *(undefined8 **)(lVar2 + 8);" (assignment_expression "puVar1 = *(undefined8 **)(lVar2 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar2 + 8)" * (cast_expression "(undefined8 **)(lVar2 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }" if (parenthesized_expression "(puVar1 != *(undefined8 **)(lVar2 + 0x10))" ( (binary_expression "puVar1 != *(undefined8 **)(lVar2 + 0x10)" identifier != (pointer_expression "*(undefined8 **)(lVar2 + 0x10)" * (cast_expression "(undefined8 **)(lVar2 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }" { (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined8 **)(lVar2 + 8) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(lVar2 + 8) = puVar1 + 1" (pointer_expression "*(undefined8 **)(lVar2 + 8)" * (cast_expression "(undefined8 **)(lVar2 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" identifier = identifier) ;) (expression_statement "FUN_00250eb0(lVar2,puVar1,&local_10);" (call_expression "FUN_00250eb0(lVar2,puVar1,&local_10)" identifier (argument_list "(lVar2,puVar1,&local_10)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_object(Cref * this, Object * object) */\n\nvoid __thiscall gold::Cref::add_object(Cref *this,Object *object)\n\n{\n  vector<gold::Object*,_std::allocator<gold::Object*>_> *this_00;\n  iterator __position;\n  Cref_inputs *pCVar1;\n  Object *local_10;\n  \n  pCVar1 = this->inputs_;\n  if (pCVar1 == (Cref_inputs *)0x0) {\n    need_inputs(this);\n    pCVar1 = this->inputs_;\n  }\n  this_00 = pCVar1->current_;\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n       _M_finish;\n  if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage) {\n    *__position._M_current = object;\n    (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1;\n    return;\n  }\n  local_10 = object;\n  std::vector<gold::Object*,_std::allocator<gold::Object*>_>::\n  _M_realloc_insert<gold::Object*_const&>(this_00,__position,&local_10);\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Cref::add_object(Cref *this,Object *object)\n\n{\n  vector<gold::Object*,_std::allocator<gold::Object*>_> *this_00;\n  iterator __position;\n  Cref_inputs *pCVar1;\n  Object *local_10;\n  \n  pCVar1 = this->inputs_;\n  if (pCVar1 == (Cref_inputs *)0x0) {\n    need_inputs(this);\n    pCVar1 = this->inputs_;\n  }\n  this_00 = pCVar1->current_;\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n       _M_finish;\n  if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage) {\n    *__position._M_current = object;\n    (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1;\n    return;\n  }\n  local_10 = object;\n  std::vector<gold::Object*,_std::allocator<gold::Object*>_>::\n  _M_realloc_insert<gold::Object*_const&>(this_00,__position,&local_10);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Cref::" identifier : : identifier : :) (function_declarator "add_object(Cref *this,Object *object)" identifier (parameter_list "(Cref *this,Object *object)" ( (parameter_declaration "Cref *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Object *object" type_identifier (pointer_declarator "*object" * identifier)) ))) (compound_statement "{\n  vector<gold::Object*,_std::allocator<gold::Object*>_> *this_00;\n  iterator __position;\n  Cref_inputs *pCVar1;\n  Object *local_10;\n  \n  pCVar1 = this->inputs_;\n  if (pCVar1 == (Cref_inputs *)0x0) {\n    need_inputs(this);\n    pCVar1 = this->inputs_;\n  }\n  this_00 = pCVar1->current_;\n  __position._M_current =\n       (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n       _M_finish;\n  if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage) {\n    *__position._M_current = object;\n    (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1;\n    return;\n  }\n  local_10 = object;\n  std::vector<gold::Object*,_std::allocator<gold::Object*>_>::\n  _M_realloc_insert<gold::Object*_const&>(this_00,__position,&local_10);\n  return;\n}" { (expression_statement "vector<gold::Object*,_std::allocator<gold::Object*>_> *this_00;" (binary_expression "vector<gold::Object*,_std::allocator<gold::Object*>_> *this_00" (binary_expression "vector<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "vector<gold::Object*,_std::allocator<gold" (binary_expression "vector<gold::Object*,_std" (binary_expression "vector<gold" identifier < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) > (pointer_expression "*this_00" * identifier)) ;) (declaration "iterator __position;" type_identifier identifier ;) (declaration "Cref_inputs *pCVar1;" type_identifier (pointer_declarator "*pCVar1" * identifier) ;) (declaration "Object *local_10;" type_identifier (pointer_declarator "*local_10" * identifier) ;) (expression_statement "pCVar1 = this->inputs_;" (assignment_expression "pCVar1 = this->inputs_" identifier = (field_expression "this->inputs_" identifier -> field_identifier)) ;) (if_statement "if (pCVar1 == (Cref_inputs *)0x0) {\n    need_inputs(this);\n    pCVar1 = this->inputs_;\n  }" if (parenthesized_expression "(pCVar1 == (Cref_inputs *)0x0)" ( (binary_expression "pCVar1 == (Cref_inputs *)0x0" identifier == (cast_expression "(Cref_inputs *)0x0" ( (type_descriptor "Cref_inputs *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    need_inputs(this);\n    pCVar1 = this->inputs_;\n  }" { (expression_statement "need_inputs(this);" (call_expression "need_inputs(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "pCVar1 = this->inputs_;" (assignment_expression "pCVar1 = this->inputs_" identifier = (field_expression "this->inputs_" identifier -> field_identifier)) ;) })) (expression_statement "this_00 = pCVar1->current_;" (assignment_expression "this_00 = pCVar1->current_" identifier = (field_expression "pCVar1->current_" identifier -> field_identifier)) ;) (expression_statement "__position._M_current =\n       (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n       _M_finish;" (assignment_expression "__position._M_current =\n       (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n       _M_finish" (field_expression "__position._M_current" identifier . field_identifier) = (field_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n       _M_finish" (field_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>" (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Object*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (__position._M_current !=\n      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage) {\n    *__position._M_current = object;\n    (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1;\n    return;\n  }" if (parenthesized_expression "(__position._M_current !=\n      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage)" ( (binary_expression "__position._M_current !=\n      (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage" (field_expression "__position._M_current" identifier . field_identifier) != (field_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl.\n      _M_end_of_storage" (field_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>" (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Object*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) )) (compound_statement "{\n    *__position._M_current = object;\n    (this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1;\n    return;\n  }" { (expression_statement "*__position._M_current = object;" (assignment_expression "*__position._M_current = object" (pointer_expression "*__position._M_current" * (field_expression "__position._M_current" identifier . field_identifier)) = identifier) ;) (expression_statement "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1;" (assignment_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish =\n         __position._M_current + 1" (field_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl._M_finish" (field_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)._M_impl" (parenthesized_expression "(this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>)" ( (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_>" (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold::Object*>_" (binary_expression "this_00->super__Vector_base<gold::Object*,_std::allocator<gold" (binary_expression "this_00->super__Vector_base<gold::Object*,_std" (binary_expression "this_00->super__Vector_base<gold" (field_expression "this_00->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Object" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . 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 = object;" (assignment_expression "local_10 = object" identifier = identifier) ;) (ERROR "std::vector<gold::Object*,_std::allocator<gold::Object*>_>::\n  _M_realloc_insert<gold::" (comma_expression "std::vector<gold::Object*,_std" identifier (ERROR "::vector<gold::Object*" : : (binary_expression "vector<gold" identifier < identifier) : : identifier *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : : (binary_expression "Object*>_>::\n  _M_realloc_insert<gold" (binary_expression "Object*>_>::\n  _M_realloc_insert" (binary_expression "Object*>_" identifier * (ERROR ">" >) identifier) > (ERROR "::" : :) identifier) < identifier) : :) (expression_statement "Object*_const&>(this_00,__position,&local_10);" (binary_expression "Object*_const&>(this_00,__position,&local_10)" (binary_expression "Object*_const" identifier * identifier) (ERROR "&" &) > (parenthesized_expression "(this_00,__position,&local_10)" ( (comma_expression "this_00,__position,&local_10" identifier , (comma_expression "__position,&local_10" identifier , (pointer_expression "&local_10" & identifier))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002a6cd0(long *param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}\n\n" (function_definition "void FUN_002a6cd0(long *param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}" primitive_type (function_declarator "FUN_002a6cd0(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) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_10;" type_identifier identifier ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }" { (expression_statement "FUN_002a68c0();" (call_expression "FUN_002a68c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (expression_statement "lVar2 = *(long *)(lVar2 + 0x48);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x48)" identifier = (pointer_expression "*(long *)(lVar2 + 0x48)" * (cast_expression "(long *)(lVar2 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x48)" ( (binary_expression "lVar2 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "puVar1 = *(undefined8 **)(lVar2 + 8);" (assignment_expression "puVar1 = *(undefined8 **)(lVar2 + 8)" identifier = (pointer_expression "*(undefined8 **)(lVar2 + 8)" * (cast_expression "(undefined8 **)(lVar2 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) ))))) ;) (if_statement "if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }" if (parenthesized_expression "(puVar1 != *(undefined8 **)(lVar2 + 0x10))" ( (binary_expression "puVar1 != *(undefined8 **)(lVar2 + 0x10)" identifier != (pointer_expression "*(undefined8 **)(lVar2 + 0x10)" * (cast_expression "(undefined8 **)(lVar2 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x10)" ( (binary_expression "lVar2 + 0x10" identifier + number_literal) ))))) )) (compound_statement "{\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }" { (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined8 **)(lVar2 + 8) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(lVar2 + 8) = puVar1 + 1" (pointer_expression "*(undefined8 **)(lVar2 + 8)" * (cast_expression "(undefined8 **)(lVar2 + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 8)" ( (binary_expression "lVar2 + 8" identifier + number_literal) )))) = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" identifier = identifier) ;) (expression_statement "FUN_00250eb0(lVar2,puVar1,&local_10);" (call_expression "FUN_00250eb0(lVar2,puVar1,&local_10)" identifier (argument_list "(lVar2,puVar1,&local_10)" ( identifier , identifier , (pointer_expression "&local_10" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002a6cd0(long *param_1,undefined8 param_2)\n\n{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002a6cd0(long *param_1,undefined8 param_2)" (identifier "FUN_002a6cd0") (parameter_list "(long *param_1,undefined8 param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  long lVar2;\n  undefined8 local_10;\n  \n  lVar2 = *param_1;\n  if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }\n  lVar2 = *(long *)(lVar2 + 0x48);\n  puVar1 = *(undefined8 **)(lVar2 + 8);\n  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }\n  local_10 = param_2;\n  FUN_00250eb0(lVar2,puVar1,&local_10);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "undefined8 local_10;" (type_identifier "undefined8") (identifier "local_10") (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (lVar2 == 0) {\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_002a68c0();\n    lVar2 = *param_1;\n  }" ({ "{") (expression_statement "FUN_002a68c0();" (call_expression "FUN_002a68c0()" (identifier "FUN_002a68c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(lVar2 + 0x48);" (assignment_expression "lVar2 = *(long *)(lVar2 + 0x48)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar2 + 0x48)" (* "*") (cast_expression "(long *)(lVar2 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x48)" (( "(") (binary_expression "lVar2 + 0x48" (identifier "lVar2") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "puVar1 = *(undefined8 **)(lVar2 + 8);" (assignment_expression "puVar1 = *(undefined8 **)(lVar2 + 8)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(lVar2 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(puVar1 != *(undefined8 **)(lVar2 + 0x10))" (( "(") (binary_expression "puVar1 != *(undefined8 **)(lVar2 + 0x10)" (identifier "puVar1") (!= "!=") (pointer_expression "*(undefined8 **)(lVar2 + 0x10)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 0x10)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x10)" (( "(") (binary_expression "lVar2 + 0x10" (identifier "lVar2") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (compound_statement "{\n    *puVar1 = param_2;\n    *(undefined8 **)(lVar2 + 8) = 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 **)(lVar2 + 8) = puVar1 + 1;" (assignment_expression "*(undefined8 **)(lVar2 + 8) = puVar1 + 1" (pointer_expression "*(undefined8 **)(lVar2 + 8)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 8)" (( "(") (binary_expression "lVar2 + 8" (identifier "lVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "local_10 = param_2;" (assignment_expression "local_10 = param_2" (identifier "local_10") (= "=") (identifier "param_2")) (; ";")) (expression_statement "FUN_00250eb0(lVar2,puVar1,&local_10);" (call_expression "FUN_00250eb0(lVar2,puVar1,&local_10)" (identifier "FUN_00250eb0") (argument_list "(lVar2,puVar1,&local_10)" (( "(") (identifier "lVar2") (, ",") (identifier "puVar1") (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_object(Cref * this, Object * object) */

void __thiscall var_2::type_1::function_1(type_1 *this,type_2 *object)

{
  var_1<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4> *this_00;
  type_3 __position;
  type_4 *var_5;
  type_2 *local_10;
  
  var_5 = this->inputs_;
  if (var_5 == (type_4 *)0x0) {
    var_6(this);
    var_5 = this->inputs_;
  }
  this_00 = var_5->current_;
  __position._M_current =
       (this_00->super__Vector_base<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>var_7)._M_impl.
       _M_finish;
  if (__position._M_current !=
      (this_00->super__Vector_base<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>var_7)._M_impl.
      _M_end_of_storage) {
    *__position._M_current = object;
    (this_00->super__Vector_base<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>var_7)._M_impl._M_finish =
         __position._M_current + 1;
    return;
  }
  local_10 = object;
  std::var_1<var_2::type_2*,var_3::allocator<var_2::type_2*>var_4>::
  _M_realloc_insert<var_2::type_2*var_8&>(this_00,__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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier))))) (return_statement))))

void MASKED(long *param_1,undefined8 param_2)

{
  undefined8 *puVar1;
  long lVar2;
  undefined8 local_10;
  
  lVar2 = *param_1;
  if (lVar2 == 0) {
    FUN_002a68c0();
    lVar2 = *param_1;
  }
  lVar2 = *(long *)(lVar2 + 0x48);
  puVar1 = *(undefined8 **)(lVar2 + 8);
  if (puVar1 != *(undefined8 **)(lVar2 + 0x10)) {
    *puVar1 = param_2;
    *(undefined8 **)(lVar2 + 8) = puVar1 + 1;
    return;
  }
  local_10 = param_2;
  FUN_00250eb0(lVar2,puVar1,&local_10);
  return;
}

