//
// std::vector>::vector from 0x76f3f0 to 0x76f498 (168 bytes)
//
// 16 xrefs:
// > EffectGameObject::triggerObject @ 0x76f5dc
// > EffectGameObject::triggerObject @ 0x76f760
// > EffectGameObject::triggerObject @ 0x76f8fc
// > EffectGameObject::triggerObject @ 0x76f93c
// > EffectGameObject::triggerObject @ 0x76f9f8
// > EffectGameObject::triggerObject @ 0x76fb38
// > EffectGameObject::triggerObject @ 0x76fea0
// > EffectGameObject::triggerObject @ 0x76ffd4
// > EffectGameObject::triggerObject @ 0x77015c
// > EffectGameObject::triggerObject @ 0x7701d4
// > std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::operator= @ 0x8a7d74
// > GJEffectManager::updateTimers @ 0x8abdb8
// > GJEffectManager::prepareMoveActions @ 0x8b58f8
// > GroupCommandObject2::GroupCommandObject2 @ 0x8bbf64
// > ??> @ 0x4db98
// > ??> @ 0x8f958
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Alternative name is '_ZNSt6vectorIiSaIiEEC1ERKS1_'
__int64 __fastcall std::vector::vector(_QWORD *a1, __int64 a2)
{
signed __int64 v3; // x20
char *v4; // x3
signed __int64 v5; // x20
__int64 result; // x0
__int64 v7; // [xsp+28h] [xbp+28h]
v3 = *(_QWORD *)(a2 + 8) - *(_QWORD *)a2;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
if ( v3 >> 2 )
{
if ( (unsigned __int64)(v3 >> 2) > 0x3FFFFFFFFFFFFFFFLL )
sub_D1383C();
v7 = a2;
v4 = (char *)operator new(v3);
a2 = v7;
}
else
{
v4 = nullptr;
}
*a1 = v4;
a1[1] = v4;
a1[2] = &v4[v3];
v5 = *(_QWORD *)(a2 + 8) - *(_QWORD *)a2;
result = v5 >> 2;
if ( v5 >> 2 )
{
result = (__int64)memmove(v4, *(const void **)a2, v5);
v4 = (char *)result;
}
a1[1] = &v4[v5];
return result;
}