//
// cocos2d::CCNodeRGBA::updateDisplayedOpacity from 0x10023d1f0 to 0x10023d2b0 (192 bytes)
//
// 17 xrefs:
// > cocos2d::extension::CCScale9Sprite::updateDisplayedOpacity @ 0x100216154
// > sub_100216174 @ 0x10021618c
// > cocos2d::CCSprite::updateDisplayedOpacity @ 0x1002394e8
// > sub_1002394FC @ 0x100239510
// > sub_10023D2B0 @ 0x10023d2b4
// > ??> @ 0x10076eda0
// > ??> @ 0x100770de8
// > ??> @ 0x100774650
// > ??> @ 0x10079f0a0
// > ??> @ 0x1007a02f8
// > ??> @ 0x1007a7930
// > ??> @ 0x1007c2c80
// > ??> @ 0x1007c9310
// > ??> @ 0x1007d2c58
// > ??> @ 0x1007e74f8
// > ??> @ 0x100815840
// > ??> @ 0x100815e08
//
// 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; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
const void **arr; // x22
unsigned __int64 v7; // x23
void *v8; // x0
a1->_displayedOpacity = (int)((double)((unsigned int)a1->_realOpacity * a2) / 255.0);
if ( a1->_cascadeOpacityEnabled )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (const void **)data->arr;
v7 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
v8 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_100770F10,
-2);
if ( v8 )
(*(void (__fastcall **)(void *, _QWORD))(*(_QWORD *)v8 + 104LL))(v8, a1->_displayedOpacity);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}