//
// ButtonSprite::setColor from 0x2e3c56 to 0x2e3c96 (64 bytes)
//
// 11 xrefs:
// > EditorUI::updateDeleteButtons @ 0x37d562
// > EditorUI::updateDeleteButtons @ 0x37d5a0
// > EditorUI::updateDeleteButtons @ 0x37d608
// > EditorUI::updateEditButtonColor @ 0x37e0a2
// > EditorUI::toggleSpecialEditButtons @ 0x39ca64
// > EditorUI::updateButtons @ 0x39cbc4
// > RateLevelLayer::selectRating @ 0x4080f4
// > GJRateLevelLayer::selectRating @ 0x453298
// > NumberInputLayer::updateNumberState @ 0x455144
// > RateStarsLayer::selectRating @ 0x4557cc
// > RateDemonLayer::selectRating @ 0x4e611a
//
// 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 ButtonSprite::setColor(ButtonSprite *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCLabelBMFont *m_label; // r0
cocos2d::CCSprite *m_subSprite; // r0
void *m_BGSprite; // r0
int v6; // [sp+4h] [bp-4h] BYREF
v6 = *(_DWORD *)&a2.r;
m_label = a1->m_label;
if ( m_label )
m_label->setColor(m_label, (const cocos2d::ccColor3B *)&v6);
m_subSprite = a1->m_subSprite;
if ( m_subSprite )
m_subSprite->setColor(m_subSprite, (const cocos2d::ccColor3B *)&v6);
m_BGSprite = a1->m_BGSprite;
if ( m_BGSprite || (m_BGSprite = a1->m_subBGSprite) != nullptr )
(*(void (__fastcall **)(void *, int *))(*(_DWORD *)m_BGSprite + 472))(m_BGSprite, &v6);
}