//
// cocos2d::extension::CCControlButton::setColor from 0x180007690 to 0x1800076f4 (100 bytes)
//
// 4 xrefs:
// > ??> @ 0x180023bb8
// > ??> @ 0x180027a00
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049768
//
// 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 *this,
const struct cocos2d::_ccColor3B *a2)
{
__int64 v4; // rax
__int64 v5; // rax
__int64 i; // rbx
cocos2d::CCLayerRGBA::setColor(this, a2);
v4 = *((_QWORD *)this + 18);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
(**(void (__fastcall ***)(__int64, const struct cocos2d::_ccColor3B *))(*(_QWORD *)(v5 + 264) + 320LL))(
*(_QWORD *)(v5 + 264) + 320LL,
a2);
v5 = i;
if ( !i )
break;
}
}
}
}