//
// cocos2d::extension::CCControlButton::setColor from 0xd0e15c to 0xd0e1bc (96 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setColor @ 0xd0e1c0
// > ??> @ 0x7dc20
// > ??> @ 0x150a930
// > ??> @ 0x15100b0
//
// This function is hookable on this platform (idp: arm, 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 13:07:01 +0000
//
__int64 __fastcall cocos2d::extension::CCControlButton::setColor(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 i; // x19
cocos2d::CCLayerRGBA::setColor();
result = *(_QWORD *)(a1 + 552);
if ( result )
{
result = *(_QWORD *)(result + 56);
if ( result )
{
for ( i = *(_QWORD *)(result + 288); ; i = *(_QWORD *)(i + 288) )
{
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(result + 264) + 960LL))(*(_QWORD *)(result + 264), a2);
result = i;
if ( !i )
break;
}
}
}
return result;
}