//
// cocos2d::CCLabelBMFont::updateDisplayedOpacity from 0x1002fc284 to 0x1002fc30c (136 bytes)
//
// 3 xrefs:
// > sub_1002FC30C @ 0x1002fc310
// > ??> @ 0x10076ce28
// > ??> @ 0x1007e9ee0
//
// 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; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x20
unsigned __int64 v7; // x21
a1->m_cDisplayedOpacity = (int)((double)((unsigned int)a1->m_cRealOpacity * a2) / 255.0);
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v7 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
((void (__fastcall *)(cocos2d::CCObject *, _QWORD))(*arr)->__vftable[11].isEqual)(*arr, a1->m_cDisplayedOpacity);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}