//
// GameObject::setDefaultSecondaryColorMode from 0x648620 to 0x648660 (64 bytes)
//
// 49 xrefs:
// > GameObject::addColorSprite @ 0x64873c
// > GameObject::addColorSprite @ 0x648854
// > GameObject::addColorSprite @ 0x6489dc
// > GameObject::addColorSprite @ 0x648a9c
// > GameObject::addColorSprite @ 0x648bec
// > GameObject::addColorSprite @ 0x648c9c
// > GameObject::addColorSprite @ 0x648e5c
// > GameObject::addColorSprite @ 0x648f60
// > GameObject::addColorSprite @ 0x649064
// > GameObject::customSetup @ 0x651308
// > LevelEditorLayer::copyObjectState @ 0x661b4c
// > AnimatedGameObject::setupChildSprites @ 0x7560a8
// > AnimatedGameObject::setupChildSprites @ 0x75623c
// > AnimatedGameObject::setupChildSprites @ 0x7564c8
// > GameObject::setupCustomSprites @ 0x984f7c
// > GameObject::setupCustomSprites @ 0x9851b4
// > GameObject::setupCustomSprites @ 0x985314
// > GameObject::setupCustomSprites @ 0x985bd0
// > GameObject::setupCustomSprites @ 0x987cc0
// > GameObject::setupCustomSprites @ 0x98ba68
// > GameObject::setupCustomSprites @ 0x98bb78
// > GameObject::setupCustomSprites @ 0x98bc18
// > GameObject::setupCustomSprites @ 0x98bce4
// > GameObject::setupCustomSprites @ 0x98c58c
// > GameObject::setupCustomSprites @ 0x98c800
// > GameObject::setupCustomSprites @ 0x98f730
// > GameObject::setupCustomSprites @ 0x98f998
// > GameObject::setupCustomSprites @ 0x98fcdc
// > GameObject::setupCustomSprites @ 0x9929ac
// > GameObject::setupCustomSprites @ 0x993028
// > GameObject::setupCustomSprites @ 0x993740
// > GameObject::setupCustomSprites @ 0x993a94
// > GameObject::setupCustomSprites @ 0x993bb8
// > GameObject::setupCustomSprites @ 0x993c30
// > GameObject::setupCustomSprites @ 0x994fdc
// > GameObject::setupCustomSprites @ 0x995788
// > GameObject::setupCustomSprites @ 0x996c70
// > GameObject::setupCustomSprites @ 0x996fbc
// > GameObject::setupCustomSprites @ 0x9983a4
// > GameObject::setupCustomSprites @ 0x998c2c
// > GameObject::setupCustomSprites @ 0x9993b4
// > GameObject::setupCustomSprites @ 0x999f34
// > GameObject::setupCustomSprites @ 0x99a004
// > GameObject::setupCustomSprites @ 0x99a2b4
// > GameObject::setupCustomSprites @ 0x99a36c
// > GameObject::setupCustomSprites @ 0x99a464
// > GameObject::setupCustomSprites @ 0x99a5a4
// > GameObject::setupCustomSprites @ 0x99b604
// > ??> @ 0x9c2e8
//
// 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; // x0
int v3; // w2
SecondaryColor = GameObject::getSecondaryColor(a1);
if ( SecondaryColor )
{
v3 = 1101;
if ( a2 <= 1100 )
{
if ( a2 < 0 )
v3 = 0;
else
v3 = a2;
}
SecondaryColor->m_defaultColorID = v3;
SecondaryColor->m_colorID = 0;
}
}