//
// cocos2d::extension::CCControlButton::setOpacity from 0xd0e0f0 to 0xd0e154 (100 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setOpacity @ 0xd0e158
// > ??> @ 0x90358
// > ??> @ 0x150a900
// > ??> @ 0x1510080
//
// 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::setOpacity(
cocos2d::extension::CCControlButton *this,
unsigned __int8 a2)
{
unsigned int v2; // w20
__int64 result; // x0
__int64 i; // x19
v2 = a2;
cocos2d::CCLayerRGBA::setOpacity(this, a2);
result = *((_QWORD *)this + 69);
if ( result )
{
result = *(_QWORD *)(result + 56);
if ( result )
{
for ( i = *(_QWORD *)(result + 288); ; i = *(_QWORD *)(i + 288) )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(result + 264) + 912LL))(*(_QWORD *)(result + 264), v2);
result = i;
if ( !i )
break;
}
}
}
return result;
}