//
// cocos2d::extension::CCControlButton::setOpacity from 0x7a8110 to 0x7a8152 (66 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setOpacity @ 0x7a8156
//
// 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::setOpacity(cocos2d::extension::CCControlButton *this, int a2)
{
int result; // r0
int v5; // r3
int v6; // r3
int v7; // r4
int v8; // r2
result = cocos2d::CCLayerRGBA::setOpacity(this, a2);
v5 = *((_DWORD *)this + 102);
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) + 456))(*(_DWORD *)(v6 + 260), a2);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
v6 = v7;
v7 = v8;
}
}
return result;
}