//
// cocos2d::CCLayerRGBA::updateDisplayedColor from 0x5cf658 to 0x5cf716 (190 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLayerRGBA::updateDisplayedColor @ 0x5cf72c
//
// 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::CCLayerRGBA::updateDisplayedColor(cocos2d::CCLayerRGBA *a1, const cocos2d::ccColor3B *a2)
{
__int16 g; // r2
int v3; // r3
__int16 b; // r2
cocos2d::CCArray *m_pChildren; // r3
cocos2d::ccArray *data; // r2
const void **arr; // r4
cocos2d::ccColor3B *p_displayedColor; // r6
const void **v9; // r5
const void *v10; // r0
const void *v11; // t1
void *v12; // r0
g = a1->_realColor.g;
a1->_displayedColor.r = (unsigned int)((double)(a1->_realColor.r * a2->r) / 255.0);
v3 = g * a2->g;
b = a1->_realColor.b;
a1->_displayedColor.g = (unsigned int)((double)v3 / 255.0);
a1->_displayedColor.b = (unsigned int)((double)(b * a2->b) / 255.0);
if ( a1->_cascadeColorEnabled )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (const void **)data->arr;
p_displayedColor = &a1->_displayedColor;
v9 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v9 )
{
v11 = *arr++;
v10 = v11;
if ( !v11 )
break;
v12 = _dynamic_cast(
v10,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v12 )
(*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_DWORD *)v12 + 40))(v12, p_displayedColor);
}
}
}
}
}