//
// ButtonSprite::setColor from 0x570328 to 0x5703a0 (120 bytes)
//
// 17 xrefs:
// > EditorUI::updateDeleteButtons @ 0x68896c
// > EditorUI::updateDeleteButtons @ 0x6889cc
// > EditorUI::updateDeleteButtons @ 0x688a34
// > EditorUI::updateEditButtonColor @ 0x689f74
// > EditorUI::toggleSpecialEditButtons @ 0x6b4eec
// > EditorUI::updateButtons @ 0x6b50fc
// > EditorUI::updateButtons @ 0x6b5600
// > RateLevelLayer::selectRating @ 0x79aad4
// > RateLevelLayer::selectRating @ 0x79ab30
// > GJRateLevelLayer::selectRating @ 0x820374
// > GJRateLevelLayer::selectRating @ 0x82040c
// > NumberInputLayer::updateNumberState @ 0x8238c4
// > RateStarsLayer::selectRating @ 0x824480
// > RateStarsLayer::selectRating @ 0x824518
// > RateDemonLayer::selectRating @ 0x933c18
// > RateDemonLayer::selectRating @ 0x933c44
// > ??> @ 0x66798
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void ButtonSprite::setColor(ButtonSprite *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCLabelBMFont *m_label; // x0
cocos2d::CCSprite *m_subSprite; // x0
void *m_BGSprite; // x0
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
v6 = *(_QWORD *)&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 *, __int64 *))(*(_QWORD *)m_BGSprite + 944LL))(m_BGSprite, &v6);
}