//
// cocos2d::CCLabelBMFont::setOpacityModifyRGB from 0xd554b4 to 0xd55570 (188 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'cocos2d::CCLabelBMFont::setOpacityModifyRGB @ 0xd55574
// > ??> @ 0xadc80
// > ??> @ 0x14152f8
// > ??> @ 0x1518768
//
// 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 13:07:43 +0000
//
cocos2d::CCArray *__fastcall cocos2d::CCLabelBMFont::setOpacityModifyRGB(cocos2d::CCLabelBMFont *this, char a2)
{
cocos2d::CCArray *result; // x0
cocos2d::CCLabelBMFont *v4; // x21
cocos2d::CCArray **v5; // x19
cocos2d::CCArray **v6; // x20
result = *((cocos2d::CCArray **)this + 26);
*((_BYTE *)this + 490) = a2;
if ( result )
{
v4 = this;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( (_DWORD)result )
{
result = *((cocos2d::CCArray **)v4 + 26);
if ( result )
{
result = *((cocos2d::CCArray **)result + 7);
if ( *(_DWORD *)result )
{
v5 = *((cocos2d::CCArray ***)result + 2);
v6 = &v5[*(unsigned int *)result - 1];
if ( v5 <= v6 )
{
for ( result = *v5; *v5; result = *v5 )
{
result = (cocos2d::CCArray *)_dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( result )
result = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(cocos2d::CCArray *, _QWORD))(*(_QWORD *)result + 48LL))(
result,
*((unsigned __int8 *)v4 + 490));
if ( v6 < ++v5 )
break;
}
}
}
}
}
}
return result;
}