//
// cocos2d::CCNodeRGBA::updateDisplayedOpacity from 0x100275290 to 0x10027534a (186 bytes)
//
// 24 xrefs:
// > cocos2d::CCSprite::updateDisplayedOpacity @ 0x10028ac99
// > cocos2d::extension::CCScale9Sprite::updateDisplayedOpacity @ 0x1003f5fdc
// > sub_1003F6000 @ 0x1003f6019
// > ??> @ 0x1008b1e40
// > ??> @ 0x1008b3370
// > ??> @ 0x1008b6608
// > ??> @ 0x1008e10b8
// > ??> @ 0x1008ef140
// > ??> @ 0x1008ef610
// > ??> @ 0x10090cbe8
// > ??> @ 0x100914df8
// > ??> @ 0x10092b3a0
// > ??> @ 0x10092b850
// > ??> @ 0x10092bd38
// > ??> @ 0x10092c220
// > ??> @ 0x10092c720
// > ??> @ 0x10092cc38
// > ??> @ 0x10092d120
// > ??> @ 0x100965788
// > ??> @ 0x100965c88
// > ??> @ 0x10097eca8
// > ??> @ 0x100981940
// > ??> @ 0x100981dc8
// > ??> @ 0x10098e4e8
//
// 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 __fastcall cocos2d::CCNodeRGBA::updateDisplayedOpacity(cocos2d::CCNodeRGBA *a1, unsigned __int8 a2)
{
cocos2d::CCArray *m_pChildren; // rax
cocos2d::ccArray *data; // rax
const void **arr; // r12
unsigned __int64 v5; // r13
void *v6; // rax
a1->_displayedOpacity = (int)((double)(a2 * a1->_realOpacity) / 255.0);
if ( a1->_cascadeOpacityEnabled )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (const void **)data->arr;
v5 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
v6 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v6 )
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v6 + 104LL))(v6, a1->_displayedOpacity);
++arr;
}
while ( (unsigned __int64)arr <= v5 );
}
}
}
}