//
// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x1005d9eb0 to 0x1005d9f2c (124 bytes)
//
// 2 xrefs:
// > ??> @ 0x10095dfd0
// > ??> @ 0x1009744b8
//
// 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::CCLabelBMFont::updateDisplayedOpacity(cocos2d::CCLabelBMFont *a1, unsigned __int8 a2)
{
cocos2d::CCArray *m_pChildren; // rax
cocos2d::ccArray *data; // rax
cocos2d::CCObject **arr; // r14
unsigned __int64 v5; // r15
a1->m_cDisplayedOpacity = (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;
v5 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))(*arr)->__vftable[11].isEqual)(*arr, a1->m_cDisplayedOpacity);
++arr;
}
while ( (unsigned __int64)arr <= v5 );
}
}
}