//
// GameObject::createColorGroupContainer from 0x356556 to 0x356588 (50 bytes)
//
// 1 xrefs:
// > GameObject::addToColorGroup @ 0x3565a2
//
// 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
//
void GameObject::createColorGroupContainer(GameObject *a1, int a2)
{
unsigned int v4; // r0
std::array *v5; // r0
int v6; // r3
if ( !a1->m_colorGroups )
{
if ( (unsigned int)a2 > 0x3F800000 )
v4 = -1;
else
v4 = 2 * a2;
v5 = (std::array *)operator new[](v4);
v6 = 0;
a1->m_colorGroups = v5;
while ( v6 < a2 )
v5->__elems_[v6++] = 0;
}
}