//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0x100398aec to 0x100398b94 (168 bytes)
//
// 3 xrefs:
// > sub_100398B94 @ 0x100398b98
// > ??> @ 0x1008b9130
// > ??> @ 0x100941fd8
//
// This function is hookable on this platform (idp: arm, 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 11:03:42 +0000
//
const void *__fastcall cocos2d::CCLabelBMFont::setOpacityModifyRGB(__int64 a1, char a2)
{
const void *result; // x0
__int64 v4; // x8
unsigned int *v5; // x9
__int64 v6; // x8
const void **v7; // x22
unsigned __int64 v8; // x23
*(_BYTE *)(a1 + 490) = a2;
result = *(const void **)(a1 + 208);
if ( result )
{
result = (const void *)sub_1002E757C((__int64)result);
if ( (_DWORD)result )
{
v4 = *(_QWORD *)(a1 + 208);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((const void ***)v5 + 2);
v8 = (unsigned __int64)&v7[v6 - 1];
do
{
result = *v7;
if ( !*v7 )
break;
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&off_1008BD768,
-2);
if ( result )
result = (const void *)(*(__int64 (__fastcall **)(const void *, _QWORD))(*(_QWORD *)result + 48LL))(
result,
*(unsigned __int8 *)(a1 + 490));
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
}
}
return result;
}