//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x1002fc1c4 to 0x1002fc26c (168 bytes)
//
// 3 xrefs:
// > sub_1002FC26C @ 0x1002fc270
// > ??> @ 0x10076ce08
// > ??> @ 0x1007e9ec0
//
// 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::setOpacityModifyRGB(cocos2d::CCLabelBMFont *a1, bool a2)
{
cocos2d::CCArray *m_pChildren; // x0
cocos2d::CCArray *v4; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
const void **arr; // x22
unsigned __int64 v8; // x23
void *v9; // x0
a1->m_bIsOpacityModifyRGB = a2;
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( (unsigned int)sub_10024A36C((__int64)m_pChildren) )
{
v4 = a1->m_pChildren;
if ( v4 )
{
data = v4->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (const void **)data->arr;
v8 = (unsigned __int64)&arr[num - 1];
do
{
if ( !*arr )
break;
v9 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&off_100770F10,
-2);
if ( v9 )
(*(void (__fastcall **)(void *, bool))(*(_QWORD *)v9 + 48LL))(v9, a1->m_bIsOpacityModifyRGB);
++arr;
}
while ( (unsigned __int64)arr <= v8 );
}
}
}
}
}