//
// GameObject::setDefaultMainColorMode from 0x1005b5400 to 0x1005b5430 (48 bytes)
//
// 5 xrefs:
// > PlayLayer::addObject @ 0x1000b21ed
// > LevelEditorLayer::copyObjectState @ 0x1000f3a13
// > EffectGameObject::customSetup @ 0x100196d22
// > GameObject::setupCustomSprites @ 0x100445a1b
// > GameObject::setupCustomSprites @ 0x1004463fc
//
// 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::setDefaultMainColorMode(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_defaultColorID = v4;
m_baseColor->m_colorID = 0;
}
}