//
// cocos2d::extension::CCControlButton::setOpacity from 0x1800070e0 to 0x180007146 (102 bytes)
//
// 4 xrefs:
// > ??> @ 0x180026108
// > ??> @ 0x18002a080
// > ??> @ 0x180032408
// > ??> @ 0x18004b690
//
// 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:15:36 +0000
//
void __fastcall cocos2d::extension::CCControlButton::setOpacity(
cocos2d::extension::CCControlButton *this,
unsigned __int8 a2)
{
__int64 v4; // rax
__int64 v5; // rax
__int64 i; // rbx
cocos2d::CCLayerRGBA::setOpacity(this, a2);
v4 = *((_QWORD *)this + 18);
if ( v4 )
{
v5 = *(_QWORD *)(v4 + 56);
if ( v5 )
{
for ( i = *(_QWORD *)(v5 + 288); ; i = *(_QWORD *)(i + 288) )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(v5 + 264) + 320LL) + 40LL))(
*(_QWORD *)(v5 + 264) + 320LL,
a2);
v5 = i;
if ( !i )
break;
}
}
}
}