//
// cocos2d::extension::CCControlButton::setOpacity from 0x5a2414 to 0x5a2456 (66 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::extension::CCControlButton::setOpacity @ 0x5a245a
//
// 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)
{
int v3; // r5
float m_fRotationX; // r3
int v5; // r3
int v6; // r4
int v7; // r2
v3 = a2;
cocos2d::CCLayerRGBA::setOpacity(a1, a2);
m_fRotationX = a1[1].m_fRotationX;
if ( m_fRotationX != 0.0 )
{
v5 = *(_DWORD *)(LODWORD(m_fRotationX) + 52);
if ( v5 )
v6 = *(_DWORD *)(v5 + 272);
else
v6 = 0;
while ( v5 )
{
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v5 + 260) + 448))(*(_DWORD *)(v5 + 260), v3);
if ( v6 )
v7 = *(_DWORD *)(v6 + 272);
else
v7 = 0;
v5 = v6;
v6 = v7;
}
}
}