//
// GameObject::setDefaultSecondaryColorMode from 0x1005a96a0 to 0x1005a96d0 (48 bytes)
//
// 18 xrefs:
// > LevelEditorLayer::copyObjectState @ 0x1000f3a21
// > AnimatedGameObject::setupChildSprites @ 0x1001b6afd
// > AnimatedGameObject::setupChildSprites @ 0x1001b6b77
// > AnimatedGameObject::setupChildSprites @ 0x1001b6e88
// > GameObject::setupCustomSprites @ 0x1004445dd
// > GameObject::setupCustomSprites @ 0x1004447a7
// > GameObject::setupCustomSprites @ 0x100447d4a
// > GameObject::setupCustomSprites @ 0x100448b02
// > GameObject::setupCustomSprites @ 0x1004499c6
// > GameObject::setupCustomSprites @ 0x100449bfa
// > GameObject::setupCustomSprites @ 0x10044a1de
// > GameObject::setupCustomSprites @ 0x100451ca5
// > GameObject::setupCustomSprites @ 0x100453b2f
// > GameObject::setupCustomSprites @ 0x100457474
// > GameObject::setupCustomSprites @ 0x10045acc3
// > GameObject::setupCustomSprites @ 0x10045b118
// > GameObject::setupCustomSprites @ 0x10045c288
// > GameObject::setupCustomSprites @ 0x10045cde2
//
// 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; // rax
int v3; // ecx
int v4; // edx
m_detailColor = a1->m_detailColor;
if ( m_detailColor )
{
v3 = 0;
if ( a2 > 0 )
v3 = a2;
v4 = 1101;
if ( v3 < 1101 )
v4 = v3;
m_detailColor->m_defaultColorID = v4;
m_detailColor->m_colorID = 0;
}
}