//
// GameObject::setMainColorMode from 0x64a008 to 0x64a044 (60 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x5ccb3c
// > ??> @ 0xa5198
//
// 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::setMainColorMode(GameObject *a1, int a2)
{
GJSpriteColor *MainColor; // x0
int v3; // w2
MainColor = GameObject::getMainColor(a1);
if ( MainColor )
{
v3 = 1101;
if ( a2 <= 1100 )
{
if ( a2 < 0 )
v3 = 0;
else
v3 = a2;
}
MainColor->m_colorID = v3;
}
}