//
// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x5cb588 to 0x5cb5e0 (88 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::updateDisplayedOpacity @ 0x5cb5ec
//
// 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::updateDisplayedOpacity(cocos2d::CCLabelBMFont *a1, unsigned __int8 a2)
{
cocos2d::CCArray *m_pChildren; // r3
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v6; // r4
int v7; // r0
int v8; // t1
a1->m_cDisplayedOpacity = (unsigned int)((double)(a2 * a1->m_cRealOpacity) / 255.0);
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = data->arr;
v6 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v6 )
{
v8 = (int)*arr++;
v7 = v8;
if ( !v8 )
break;
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v7 + 452))(v7, a1->m_cDisplayedOpacity);
}
}
}
}