//
// cocos2d::CCNodeRGBA::updateDisplayedColor from 0x10023d3cc to 0x10023d4c8 (252 bytes)
//
// 17 xrefs:
// > cocos2d::extension::CCScale9Sprite::updateDisplayedColor @ 0x1002161c0
// > sub_1002161E0 @ 0x1002161f8
// > cocos2d::CCSprite::updateDisplayedColor @ 0x10023949c
// > sub_1002394B0 @ 0x1002394c4
// > sub_10023D4C8 @ 0x10023d4cc
// > ??> @ 0x10076edd0
// > ??> @ 0x100770e18
// > ??> @ 0x100774680
// > ??> @ 0x10079f0d0
// > ??> @ 0x1007a0328
// > ??> @ 0x1007a7960
// > ??> @ 0x1007c2cb0
// > ??> @ 0x1007c9340
// > ??> @ 0x1007d2c88
// > ??> @ 0x1007e7528
// > ??> @ 0x100815870
// > ??> @ 0x100815e38
//
// 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::updateDisplayedColor(cocos2d::CCNodeRGBA *a1, const cocos2d::ccColor3B *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->_displayedColor.r = (int)((double)(a2->r * (unsigned int)a1->_realColor.r) / 255.0);
a1->_displayedColor.g = (int)((double)(a2->g * (unsigned int)a1->_realColor.g) / 255.0);
a1->_displayedColor.b = (int)((double)(a2->b * (unsigned int)a1->_realColor.b) / 255.0);
if ( a1->_cascadeColorEnabled )
{
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 *, cocos2d::ccColor3B *))(*(_QWORD *)v8 + 80LL))(v8, &a1->_displayedColor);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}