//
// std::vector>::vector from 0x372e84 to 0x372ec8 (68 bytes)
//
// 3 xrefs:
// > std::vector>,std::allocator>>>::_M_emplace_back_aux> const&> @ 0x372f2a
// > std::vector>,std::allocator>>>::push_back @ 0x372ffc
// > processTraceOutSource @ 0x3775f4
//
// 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 '_ZNSt6vectorI9ChainNodeSaIS0_EEC1ERKS2_'
unsigned int *__fastcall std::vector::vector(unsigned int *a1, int *a2)
{
signed int v4; // r5
unsigned int v5; // r2
v4 = a2[1] - *a2;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v5 = -1431655765 * (v4 >> 4);
if ( v5 )
{
if ( v5 > 0x5555555 )
sub_772FB4(a1);
v5 = operator new(v4);
}
*a1 = v5;
a1[1] = v5;
a1[2] = v4 + v5;
a1[1] = std::__uninitialized_copy::__uninit_copy<__gnu_cxx::__normal_iterator>,ChainNode*>(
*a2,
a2[1],
v5);
return a1;
}