//
// PlayerObject::setSecondColor from 0x14039d3a0 to 0x14039d423 (131 bytes)
//
// 9 xrefs:
// > GJBaseGameLayer::createPlayer @ 0x14020b465
// > GJBaseGameLayer::createPlayer @ 0x14020b70b
// > MenuGameLayer::init @ 0x14033192d
// > MenuGameLayer::resetPlayer @ 0x140332970
// > PlayerObject::update @ 0x140388e76
// > PlayerObject::playSpiderDashEffect @ 0x1403955dc
// > PlayerObject::startDashing @ 0x1403960c1
// > PlayerObject::resetObject @ 0x140397131
// > ??> @ 0x1406d6728
//
// 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 PlayerObject::setSecondColor(PlayerObject *a1, const cocos2d::ccColor3B *a2)
{
GJRobotSprite *m_robotSprite; // rcx
GJSpiderSprite *m_spiderSprite; // rcx
((void (__fastcall *)(cocos2d::CCRGBAProtocol *))a1->m_iconSpriteSecondary->setColor)(&a1->m_iconSpriteSecondary->cocos2d::CCRGBAProtocol);
a1->m_vehicleSpriteSecondary->setColor(&a1->m_vehicleSpriteSecondary->cocos2d::CCRGBAProtocol, a2);
m_robotSprite = a1->m_robotSprite;
m_robotSprite->m_secondColor = *a2;
GJRobotSprite::updateColors(m_robotSprite);
m_spiderSprite = a1->m_spiderSprite;
m_spiderSprite->m_secondColor = *a2;
GJRobotSprite::updateColors(m_spiderSprite);
}