//
// cocos2d::CCLabelBMFont::updateDisplayedColor from 0x5cb5f0 to 0x5cb690 (160 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::updateDisplayedColor @ 0x5cb69c
//
// 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::CCLabelBMFont::updateDisplayedColor(cocos2d::CCLabelBMFont *a1, const cocos2d::ccColor3B *a2)
{
__int16 g; // r2
int v3; // r3
__int16 b; // r2
cocos2d::CCArray *m_pChildren; // r3
cocos2d::ccArray *data; // r3
cocos2d::CCObject **arr; // r6
cocos2d::CCObject **v8; // r5
cocos2d::ccColor3B *i; // r4
int v10; // r0
int v11; // t1
g = a1->m_tRealColor.g;
a1->m_tDisplayedColor.r = (unsigned int)((double)(a1->m_tRealColor.r * a2->r) / 255.0);
v3 = g * a2->g;
b = a1->m_tRealColor.b;
a1->m_tDisplayedColor.g = (unsigned int)((double)v3 / 255.0);
a1->m_tDisplayedColor.b = (unsigned int)((double)(b * a2->b) / 255.0);
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = data->arr;
v8 = &arr[data->num] + 0x3FFFFFFF;
for ( i = &a1->m_tDisplayedColor;
arr <= v8;
(*(void (__fastcall **)(int, cocos2d::ccColor3B *))(*(_DWORD *)v10 + 476))(v10, i) )
{
v11 = (int)*arr++;
v10 = v11;
if ( !v11 )
break;
}
}
}
}