//
// cocos2d::extension::CCControlButton::setColor from 0x100355360 to 0x1003553b4 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x1009160c8
// > ??> @ 0x100947810
//
// 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 cocos2d::extension::CCControlButton::setColor(
cocos2d::extension::CCControlButton *a1,
const cocos2d::ccColor3B *a2)
{
__int64 v2; // rax
__int64 v3; // r14
__int64 v4; // rdi
cocos2d::CCLayerRGBA::setColor(a1, a2);
v2 = *(_QWORD *)&a1[1].m_obPosition.y;
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 56);
while ( v3 )
{
v4 = *(_QWORD *)(v3 + 264);
v3 = *(_QWORD *)(v3 + 288);
(*(void (__fastcall **)(__int64, const cocos2d::ccColor3B *))(*(_QWORD *)v4 + 944LL))(v4, a2);
}
}
}