//
// cocos2d::extension::CCControlButton::setOpacity from 0xa9c6b0 to 0xa9c714 (100 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setOpacity @ 0xa9c718
// > ??> @ 0x6a9e0
// > ??> @ 0x11f5150
// > ??> @ 0x11fa760
//
// 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 cocos2d::extension::CCControlButton::setOpacity(cocos2d::extension::CCControlButton *a1, unsigned __int8 a2)
{
unsigned int v2; // w20
__int64 v4; // x0
__int64 v5; // x0
__int64 i; // x19
v2 = a2;
cocos2d::CCLayerRGBA::setOpacity(a1, a2);
v4 = *(_QWORD *)&a1[1].m_obPosition.y;
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 264) + 896LL))(*(_QWORD *)(v5 + 264), v2);
v5 = i;
if ( !i )
break;
}
}
}
}