//
// GameObject::setMainColorMode from 0x1005ca180 to 0x1005ca1a9 (41 bytes)
//
// 1 xrefs:
// > PlayLayer::addObject @ 0x1000b21e3
//
// 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; // rax
int v3; // ecx
int v4; // edx
m_baseColor = a1->m_baseColor;
if ( m_baseColor )
{
v3 = 0;
if ( a2 > 0 )
v3 = a2;
v4 = 1101;
if ( v3 < 1101 )
v4 = v3;
m_baseColor->m_colorID = v4;
}
}