//
// GameObject::updateSecondaryColor from 0x358c86 to 0x358cbc (54 bytes)
//
// 1 xrefs:
// > PlayLayer::updateVisibility @ 0x315ad0
//
// 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::updateSecondaryColor(GameObject *a1, const cocos2d::ccColor3B *a2)
{
int m_activeDetailColorID; // r1
void (__fastcall *updateSecondaryColor)(GameObject *__hidden, const cocos2d::ccColor3B *); // r5
const cocos2d::ccColor3B *v5; // r0
if ( GameObject::hasSecondaryColor(a1) )
{
m_activeDetailColorID = a1->m_activeDetailColorID;
if ( m_activeDetailColorID || a1->m_groupCount )
{
updateSecondaryColor = a1->updateSecondaryColor;
v5 = GameObject::colorForMode(a1, m_activeDetailColorID, 0);
updateSecondaryColor(a1, v5);
GameObject::updateSecondaryOpacity(a1);
}
}
}