//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x1006ab680 to 0x1006ab72a (170 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b6aac8
// > ??> @ 0x100b87028
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:35:22 +0000
//
_QWORD *__fastcall cocos2d::CCLabelBMFont::setOpacityModifyRGB(__int64 a1, char a2)
{
_QWORD *result; // rax
__int64 v4; // rdi
const void **v5; // r12
unsigned __int64 v6; // r13
*(_BYTE *)(a1 + 490) = a2;
v4 = *(_QWORD *)(a1 + 208);
if ( v4 )
{
result = (_QWORD *)sub_1007FEF90(v4);
if ( (_DWORD)result )
{
result = *(_QWORD **)(a1 + 208);
if ( result )
{
result = (_QWORD *)result[7];
if ( *(_DWORD *)result )
{
v5 = (const void **)result[2];
v6 = (unsigned __int64)&v5[*(unsigned int *)result - 1];
do
{
if ( !*v5 )
break;
result = __dynamic_cast(
*v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*result + 48LL))(
result,
*(unsigned __int8 *)(a1 + 490));
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
}
}
return result;
}