//
// cocos2d::extension::CCControlButton::setColor from 0x180007160 to 0x1800071c4 (100 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800260e0
// > ??> @ 0x18002a058
// > ??> @ 0x180032408
// > ??> @ 0x18004b69c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:15:36 +0000
//
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;
}
}
}
}