//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x1005d9d30 to 0x1005d9dda (170 bytes)
//
// 2 xrefs:
// > ??> @ 0x10095dfb0
// > ??> @ 0x100974498
//
// 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; // rdi
cocos2d::CCArray *v4; // rax
cocos2d::ccArray *data; // rax
const void **arr; // r12
unsigned __int64 v7; // r13
void *v8; // rax
a1->m_bIsOpacityModifyRGB = a2;
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
if ( (unsigned int)sub_100720070(m_pChildren) )
{
v4 = a1->m_pChildren;
if ( v4 )
{
data = v4->data;
if ( data->num )
{
arr = (const void **)data->arr;
v7 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
v8 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v8 )
(*(void (__fastcall **)(void *, bool))(*(_QWORD *)v8 + 48LL))(v8, a1->m_bIsOpacityModifyRGB);
++arr;
}
while ( (unsigned __int64)arr <= v7 );
}
}
}
}
}