//
// cocos2d::extension::CCControlButton::setColor from 0x7a815a to 0x7a819c (66 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setColor @ 0x7a81a0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:00 +0000
//
int __fastcall cocos2d::extension::CCControlButton::setColor(int a1, int a2)
{
int result; // r0
int v5; // r3
int v6; // r3
int v7; // r4
int v8; // r2
result = cocos2d::CCLayerRGBA::setColor();
v5 = *(_DWORD *)(a1 + 408);
if ( v5 )
{
v6 = *(_DWORD *)(v5 + 52);
if ( v6 )
v7 = *(_DWORD *)(v6 + 272);
else
v7 = 0;
while ( v6 )
{
result = (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(v6 + 260) + 480))(*(_DWORD *)(v6 + 260), a2);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
v6 = v7;
v7 = v8;
}
}
return result;
}