//
// GameObject::setMainColorMode from 0x100261e44 to 0x100261e64 (32 bytes)
//
// 1 xrefs:
// > PlayLayer::addObject @ 0x100118ebc
//
// 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 __fastcall GameObject::setMainColorMode(GameObject *a1, int a2)
{
GJSpriteColor *m_baseColor; // x8
int v3; // w9
m_baseColor = a1->m_baseColor;
if ( m_baseColor )
{
v3 = a2 & ~(a2 >> 31);
if ( v3 >= 1101 )
v3 = 1101;
m_baseColor->m_colorID = v3;
}
}