//
// GameObject::setDefaultSecondaryColorMode from 0x100255bdc to 0x100255bfc (32 bytes)
//
// 17 xrefs:
// > GameObject::setupCustomSprites @ 0x1002aeb08
// > GameObject::setupCustomSprites @ 0x1002aece0
// > GameObject::setupCustomSprites @ 0x1002b2110
// > GameObject::setupCustomSprites @ 0x1002b3bc8
// > GameObject::setupCustomSprites @ 0x1002b4488
// > GameObject::setupCustomSprites @ 0x1002b5300
// > GameObject::setupCustomSprites @ 0x1002b66c4
// > GameObject::setupCustomSprites @ 0x1002b66fc
// > GameObject::setupCustomSprites @ 0x1002c1e7c
// > GameObject::setupCustomSprites @ 0x1002c214c
// > GameObject::setupCustomSprites @ 0x1002c2a6c
// > GameObject::setupCustomSprites @ 0x1002c3f68
// > GameObject::setupCustomSprites @ 0x1002c4534
// > LevelEditorLayer::copyObjectState @ 0x100363a80
// > AnimatedGameObject::setupChildSprites @ 0x10038389c
// > AnimatedGameObject::setupChildSprites @ 0x100383900
// > AnimatedGameObject::setupChildSprites @ 0x100383b84
//
// 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::setDefaultSecondaryColorMode(GameObject *a1, int a2)
{
GJSpriteColor *m_detailColor; // x8
int v3; // w9
m_detailColor = a1->m_detailColor;
if ( m_detailColor )
{
v3 = a2 & ~(a2 >> 31);
if ( v3 >= 1101 )
v3 = 1101;
m_detailColor->m_colorID = 0;
m_detailColor->m_defaultColorID = v3;
}
}