//
// std::vector>::vector from 0x566788 to 0x5667cc (68 bytes)
//
// 4 xrefs:
// > ExplodeItemNode::createSprites @ 0x566854
// > ExplodeItemNode::createSprites @ 0x56685e
// > ExplodeItemNode::createSprites @ 0x566868
// > ExplodeItemNode::createSprites @ 0x566872
//
// 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 '_ZNSt6vectorIfSaIfEEC1EjRKS0_'
_DWORD *__fastcall std::vector::vector(_DWORD *a1, unsigned int a2)
{
int v4; // r6
char *v5; // r0
char *v6; // r6
*a1 = 0;
v4 = 4 * a2;
a1[1] = 0;
a1[2] = 0;
if ( a2 )
{
if ( a2 >= 0x40000000 )
sub_772FB4(a1);
v5 = (char *)operator new(4 * a2);
}
else
{
v5 = nullptr;
}
v6 = &v5[v4];
*a1 = v5;
a1[1] = v5;
a1[2] = v6;
memset(v5, 0, 4 * a2);
a1[1] = v6;
return a1;
}