//
// cocos2d::CCNodeRGBA::setOpacity from 0xacbb38 to 0xacbbd0 (152 bytes)
//
// 19 xrefs:
// > cocos2d::CCAtlasNode::setOpacity @ 0xaca704
// > `non-virtual thunk to'cocos2d::CCNodeRGBA::setOpacity @ 0xacbbd4
// > cocos2d::CCSprite::setOpacity @ 0xb16e50
// > ??> @ 0x63cf0
// > ??> @ 0x1138d00
// > ??> @ 0x1139210
// > ??> @ 0x113f650
// > ??> @ 0x1156540
// > ??> @ 0x11892a0
// > ??> @ 0x11a2280
// > ??> @ 0x1200830
// > ??> @ 0x1201410
// > ??> @ 0x120ed50
// > ??> @ 0x120f220
// > ??> @ 0x120f6f0
// > ??> @ 0x120fba0
// > ??> @ 0x1210070
// > ??> @ 0x1210560
// > ??> @ 0x1210a50
//
// 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::CCNodeRGBA::setOpacity(cocos2d::CCNodeRGBA *a1, unsigned __int8 a2)
{
_BOOL4 cascadeOpacityEnabled; // w2
cocos2d::CCNode *m_pParent; // x0
void *v5; // x0
void *v6; // x20
__int64 v7; // x1
cascadeOpacityEnabled = a1->_cascadeOpacityEnabled;
a1->_realOpacity = a2;
a1->_displayedOpacity = a2;
if ( cascadeOpacityEnabled )
{
m_pParent = a1->m_pParent;
if ( m_pParent
&& (v5 = _dynamic_cast(
m_pParent,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2),
(v6 = v5) != nullptr)
&& (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v5 + 88LL))(v5) )
{
v7 = (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v6 + 24LL))(v6);
}
else
{
v7 = 255;
}
a1->updateDisplayedOpacity(a1, v7);
}
}