//
// cocos2d::extension::CCControlButton::setColor from 0x100340a70 to 0x100340ac4 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b1df38
// > ??> @ 0x100b52620
//
// 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:28:43 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::setColor(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 i; // r14
__int64 v4; // rdi
cocos2d::CCLayerRGBA::setColor();
result = *(_QWORD *)(a1 + 552);
if ( result )
{
for ( i = *(_QWORD *)(result + 56);
i;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 960LL))(v4, a2) )
{
v4 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
}
}
return result;
}