//
// GameObject::setDefaultSecondaryColorMode from 0x35743c to 0x357460 (36 bytes)
//
// 48 xrefs:
// > GameObject::addColorSprite @ 0x35784a
// > GameObject::addColorSprite @ 0x358344
// > GameObject::addColorSprite @ 0x358396
// > GameObject::addColorSprite @ 0x3583ea
// > GameObject::addColorSprite @ 0x35843c
// > GameObject::addColorSprite @ 0x358490
// > GameObject::addColorSprite @ 0x35851c
// > GameObject::addColorSprite @ 0x358578
// > GameObject::addColorSprite @ 0x35860c
// > GameObject::customSetup @ 0x35f7a6
// > LevelEditorLayer::copyObjectState @ 0x368c7e
// > AnimatedGameObject::setupChildSprites @ 0x3e7ae0
// > AnimatedGameObject::setupChildSprites @ 0x3e7c6c
// > AnimatedGameObject::setupChildSprites @ 0x3e7cda
// > GameObject::setupCustomSprites @ 0x51905a
// > GameObject::setupCustomSprites @ 0x519128
// > GameObject::setupCustomSprites @ 0x519136
// > GameObject::setupCustomSprites @ 0x519164
// > GameObject::setupCustomSprites @ 0x51e568
// > GameObject::setupCustomSprites @ 0x51e5fa
// > GameObject::setupCustomSprites @ 0x51e63e
// > GameObject::setupCustomSprites @ 0x51e69c
// > GameObject::setupCustomSprites @ 0x51e74c
// > GameObject::setupCustomSprites @ 0x51e87e
// > GameObject::setupCustomSprites @ 0x51e8d4
// > GameObject::setupCustomSprites @ 0x51e96e
// > GameObject::setupCustomSprites @ 0x51e9ce
// > GameObject::setupCustomSprites @ 0x51ea38
// > GameObject::setupCustomSprites @ 0x51ece0
// > GameObject::setupCustomSprites @ 0x51ef24
// > GameObject::setupCustomSprites @ 0x51f134
// > GameObject::setupCustomSprites @ 0x51f1a2
// > GameObject::setupCustomSprites @ 0x51f208
// > GameObject::setupCustomSprites @ 0x51f414
// > GameObject::setupCustomSprites @ 0x51f696
// > GameObject::setupCustomSprites @ 0x51fb30
// > GameObject::setupCustomSprites @ 0x51feb2
// > GameObject::setupCustomSprites @ 0x51ff18
// > GameObject::setupCustomSprites @ 0x51ffce
// > GameObject::setupCustomSprites @ 0x520084
// > GameObject::setupCustomSprites @ 0x52010c
// > GameObject::setupCustomSprites @ 0x52021c
// > GameObject::setupCustomSprites @ 0x52063c
// > GameObject::setupCustomSprites @ 0x520dc8
// > GameObject::setupCustomSprites @ 0x520e76
// > GameObject::setupCustomSprites @ 0x521d0c
// > GameObject::setupCustomSprites @ 0x521dbe
// > GameObject::setupCustomSprites @ 0x521ed0
//
// 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 GameObject::setDefaultSecondaryColorMode(GameObject *a1, int a2)
{
GJSpriteColor *SecondaryColor; // r0
int v4; // r4
SecondaryColor = GameObject::getSecondaryColor(a1);
if ( SecondaryColor )
{
SecondaryColor->m_colorID = 0;
if ( a2 > 1100 )
v4 = 1101;
else
v4 = a2 & ~(a2 >> 31);
SecondaryColor->m_defaultColorID = v4;
}
}