//
// GameObject::resetMainColorMode from 0x3586a8 to 0x3586ca (34 bytes)
//
// 0 xrefs:
//
// 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::resetMainColorMode(GameObject *a1)
{
GJSpriteColor *MainColor; // r0
int m_defaultColorID; // r3
int v3; // r3
MainColor = GameObject::getMainColor(a1);
if ( MainColor )
{
m_defaultColorID = MainColor->m_defaultColorID;
if ( m_defaultColorID > 1100 )
v3 = 1101;
else
v3 = m_defaultColorID & ~(m_defaultColorID >> 31);
MainColor->m_defaultColorID = v3;
MainColor->m_colorID = 0;
}
}