//
// cocos2d::extension::CCControlButton::setColor from 0xa9c71c to 0xa9c77c (96 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setColor @ 0xa9c780
// > ??> @ 0x5bb18
// > ??> @ 0x11f5180
// > ??> @ 0x11fa790
//
// 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 cocos2d::extension::CCControlButton::setColor(
cocos2d::extension::CCControlButton *a1,
const cocos2d::ccColor3B *a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 i; // x19
cocos2d::CCLayerRGBA::setColor(a1, a2);
v4 = *(_QWORD *)&a1[1].m_obPosition.y;
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
(*(void (__fastcall **)(_QWORD, const cocos2d::ccColor3B *))(**(_QWORD **)(v5 + 264) + 944LL))(
*(_QWORD *)(v5 + 264),
a2);
v5 = i;
if ( !i )
break;
}
}
}
}