//
// cocos2d::extension::CCControlButton::setOpacity from 0x100355280 to 0x1003552d3 (83 bytes)
//
// 2 xrefs:
// > ??> @ 0x100916098
// > ??> @ 0x1009477e0
//
// 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 __fastcall cocos2d::extension::CCControlButton::setOpacity(
cocos2d::extension::CCControlButton *a1,
unsigned __int8 a2)
{
__int64 v2; // rax
__int64 v3; // r14
__int64 v4; // rdi
cocos2d::CCLayerRGBA::setOpacity(a1, a2);
v2 = *(_QWORD *)&a1[1].m_obPosition.y;
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 56);
while ( v3 )
{
v4 = *(_QWORD *)(v3 + 264);
v3 = *(_QWORD *)(v3 + 288);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 896LL))(v4, a2);
}
}
}