//
// ButtonSprite::setColor from 0x1000933c0 to 0x100093432 (114 bytes)
//
// 17 xrefs:
// > EditorUI::updateButtons @ 0x10002c987
// > EditorUI::toggleSpecialEditButtons @ 0x10002d5d7
// > EditorUI::toggleSpecialEditButtons @ 0x10002d6c8
// > EditorUI::toggleSpecialEditButtons @ 0x10002d7b5
// > EditorUI::toggleSpecialEditButtons @ 0x10002d89a
// > EditorUI::updateDeleteButtons @ 0x1000324e2
// > EditorUI::updateDeleteButtons @ 0x100032544
// > EditorUI::updateDeleteButtons @ 0x1000325a4
// > EditorUI::updateEditButtonColor @ 0x10003eb19
// > RateDemonLayer::selectRating @ 0x100284273
// > RateStarsLayer::selectRating @ 0x10028c500
// > NumberInputLayer::init @ 0x100492de8
// > NumberInputLayer::updateNumberState @ 0x100492f4f
// > NumberInputLayer::deleteLast @ 0x100493110
// > NumberInputLayer::inputNumber @ 0x100493275
// > GJRateLevelLayer::selectRating @ 0x100506630
// > RateLevelLayer::selectRating @ 0x10056842e
//
// 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 __fastcall ButtonSprite::setColor(ButtonSprite *a1, cocos2d::ccColor3B a2)
{
__int64 v2; // rax
cocos2d::CCLabelBMFont *m_label; // rdi
cocos2d::CCSprite *m_subSprite; // rdi
void *m_BGSprite; // rdi
cocos2d::ccColor3B v7; // [rsp+0h] [rbp-Ch] BYREF
char v8; // [rsp+3h] [rbp-9h]
v8 = HIBYTE(v2);
v7 = a2;
m_label = a1->m_label;
if ( m_label )
((void (__fastcall *)(cocos2d::CCLabelBMFont *, cocos2d::ccColor3B *))m_label->setColor)(m_label, &v7);
m_subSprite = a1->m_subSprite;
if ( m_subSprite )
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_subSprite->setColor)(m_subSprite, &v7);
m_BGSprite = a1->m_BGSprite;
if ( m_BGSprite || (m_BGSprite = a1->m_subBGSprite) != nullptr )
(*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_QWORD *)m_BGSprite + 944LL))(m_BGSprite, &v7);
}