//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0xae296c to 0xae2a28 (188 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::setOpacityModifyRGB @ 0xae2a2c
// > ??> @ 0x82bc0
// > ??> @ 0x1137ba8
// > ??> @ 0x1202dd8
//
// 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::setOpacityModifyRGB(cocos2d::CCLabelBMFont *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // x0
cocos2d::CCLabelBMFont *v4; // x21
cocos2d::CCArray *v5; // x0
cocos2d::ccArray *data; // x0
const void **arr; // x19
const void **v8; // x20
const void *i; // x0
void *v10; // x0
m_pChildren = a1->m_pChildren;
a1->m_bIsOpacityModifyRGB = a2;
if ( m_pChildren )
{
v4 = a1;
if ( (unsigned int)cocos2d::CCArray::count(m_pChildren) )
{
v5 = v4->m_pChildren;
if ( v5 )
{
data = v5->data;
if ( data->num )
{
arr = (const void **)data->arr;
v8 = &arr[data->num - 1];
if ( arr <= v8 )
{
for ( i = *arr; *arr; i = *arr )
{
v10 = _dynamic_cast(
i,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v10 )
(*(void (__fastcall **)(void *, bool))(*(_QWORD *)v10 + 48LL))(v10, v4->m_bIsOpacityModifyRGB);
if ( v8 < ++arr )
break;
}
}
}
}
}
}
}